Fill all spoofId fields & avoid duplicate Ids
This commit is contained in:
parent
b8cf97645b
commit
b59ba39e05
|
@ -595,7 +595,7 @@ $(window).on 'load', () ->
|
|||
|
||||
$('#resetfinduserform').on 'click', () ->
|
||||
console.log 'Reset form'
|
||||
$('#finduserForm').trigger('reset')
|
||||
$(this).trigger('reset')
|
||||
|
||||
$('#closefinduserform').on 'click', () ->
|
||||
console.log 'Clear modal'
|
||||
|
@ -616,7 +616,8 @@ $(window).on 'load', () ->
|
|||
document.body.style.cursor = 'default'
|
||||
user = data.user
|
||||
console.log 'Suggested spoofId=', user
|
||||
$('#spoofIdfield').attr 'value', user
|
||||
$("input[name=spoofId]").each ->
|
||||
$(this).attr 'value', user
|
||||
$('#captcha').attr 'src', data.captcha if data.captcha
|
||||
if data.token
|
||||
$('#finduserToken').attr 'value', data.token
|
||||
|
|
|
@ -684,7 +684,9 @@ LemonLDAP::NG Portal jQuery scripts
|
|||
document.body.style.cursor = 'default';
|
||||
user = data.user;
|
||||
console.log('Suggested spoofId=', user);
|
||||
$('#spoofIdfield').attr('value', user);
|
||||
$("input[name=spoofId]").each(function() {
|
||||
return $(this).attr('value', user);
|
||||
});
|
||||
if (data.captcha) {
|
||||
$('#captcha').attr('src', data.captcha);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,6 @@
|
|||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><label for="spoofIdfield" class="mb-0"><i class="fa fa-user icon-blue"></i></label></span>
|
||||
</div>
|
||||
<input id="spoofIdfield" name="spoofId" type="text" class="form-control" value="<TMPL_VAR NAME="SPOOFID">" autocomplete="off" trplaceholder="spoofId" aria-required="false"/>
|
||||
<input name="spoofId" type="text" class="form-control" value="<TMPL_VAR NAME="SPOOFID">" autocomplete="off" trplaceholder="spoofId" aria-required="false"/>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
|
Loading…
Reference in New Issue
Block a user