Use property instead of attribute (#2606)
This commit is contained in:
parent
6806864872
commit
e018e679c3
|
@ -618,11 +618,11 @@ $(window).on 'load', () ->
|
|||
user = data.user
|
||||
console.log 'Suggested spoofId=', user
|
||||
$("input[name=spoofId]").each ->
|
||||
$(this).attr 'value', user
|
||||
$(this).val user
|
||||
$('#captcha').attr 'src', data.captcha if data.captcha
|
||||
if data.token
|
||||
$('#finduserToken').attr 'value', data.token
|
||||
$('#token').attr 'value', data.token
|
||||
$('#finduserToken').val data.token
|
||||
$('#token').val data.token
|
||||
error: (j, status, err) ->
|
||||
document.body.style.cursor = 'default'
|
||||
console.log 'Error', err if err
|
||||
|
|
|
@ -687,14 +687,14 @@ LemonLDAP::NG Portal jQuery scripts
|
|||
user = data.user;
|
||||
console.log('Suggested spoofId=', user);
|
||||
$("input[name=spoofId]").each(function() {
|
||||
return $(this).attr('value', user);
|
||||
return $(this).val(user);
|
||||
});
|
||||
if (data.captcha) {
|
||||
$('#captcha').attr('src', data.captcha);
|
||||
}
|
||||
if (data.token) {
|
||||
$('#finduserToken').attr('value', data.token);
|
||||
return $('#token').attr('value', data.token);
|
||||
$('#finduserToken').val(data.token);
|
||||
return $('#token').val(data.token);
|
||||
}
|
||||
},
|
||||
error: function(j, status, err) {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user