Display placeholder (#2521)
This commit is contained in:
parent
4494bd1e5b
commit
547d809852
|
@ -1,4 +1,4 @@
|
|||
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
|
||||
.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
|
||||
.\"
|
||||
.\" Standard preamble:
|
||||
.\" ========================================================================
|
||||
|
@ -133,7 +133,7 @@
|
|||
.\" ========================================================================
|
||||
.\"
|
||||
.IX Title "llng-fastcgi-server 8"
|
||||
.TH llng-fastcgi-server 8 "2021-01-18" "perl v5.28.1" "User Contributed Perl Documentation"
|
||||
.TH llng-fastcgi-server 8 "2021-07-03" "perl v5.30.0" "User Contributed Perl Documentation"
|
||||
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
||||
.\" way too many mistakes in technical documents.
|
||||
.if n .ad l
|
||||
|
|
|
@ -550,6 +550,15 @@ $(window).on 'load', () ->
|
|||
$("#show-hide-icon-button").removeClass 'fa-eye-slash'
|
||||
$("#show-hide-icon-button").addClass 'fa-eye'
|
||||
|
||||
# Functions to show/hide placeholder password inputs
|
||||
$('#passwordfield').on 'input', () ->
|
||||
if $('#passwordfield').get(0).value && $('#passwordfield').get(0).type == 'text'
|
||||
$("#passwordfield").removeClass 'form-control'
|
||||
$("#passwordfield").addClass 'form-control key'
|
||||
else
|
||||
$("#passwordfield").removeClass 'form-control key'
|
||||
$("#passwordfield").addClass 'form-control'
|
||||
|
||||
#$('#formpass').on 'submit', changePwd
|
||||
|
||||
$('#resetfinduserform').on 'click', () ->
|
||||
|
|
|
@ -597,6 +597,15 @@ LemonLDAP::NG Portal jQuery scripts
|
|||
return $("#show-hide-icon-button").addClass('fa-eye');
|
||||
}
|
||||
});
|
||||
$('#passwordfield').on('input', function() {
|
||||
if ($('#passwordfield').get(0).value && $('#passwordfield').get(0).type === 'text') {
|
||||
$("#passwordfield").removeClass('form-control');
|
||||
return $("#passwordfield").addClass('form-control key');
|
||||
} else {
|
||||
$("#passwordfield").removeClass('form-control key');
|
||||
return $("#passwordfield").addClass('form-control');
|
||||
}
|
||||
});
|
||||
$('#resetfinduserform').on('click', function() {
|
||||
console.log('Reset form');
|
||||
return $('#finduserForm').trigger('reset');
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,7 @@
|
|||
<span class="input-group-text"><label for="passwordfield" class="mb-0"><i class="fa fa-lock"></i></label></span>
|
||||
</div>
|
||||
<TMPL_IF NAME="DONT_STORE_PASSWORD">
|
||||
<input id="passwordfield" name="password" type="text" class="form-control key" autocomplete="off" required aria-required="true" aria-hidden="true"/>
|
||||
<input id="passwordfield" name="password" type="text" class="form-control" trplaceholder="password" autocomplete="off" required aria-required="true" aria-hidden="true"/>
|
||||
<TMPL_ELSE>
|
||||
<input id="passwordfield" name="password" type="password" class="form-control" trplaceholder="password" required aria-required="true"/>
|
||||
<TMPL_IF NAME="ENABLE_PASSWORD_DISPLAY">
|
||||
|
|
Loading…
Reference in New Issue