mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Add reveal button to setup wizard password field
This commit is contained in:
parent
80a836e3e0
commit
41dfd27ff7
2 changed files with 7 additions and 2 deletions
|
@ -893,7 +893,7 @@ function loadBlurHash(elem, src) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toggleRevealToken(elem, click) {
|
function _toggleRevealToken(elem, click) {
|
||||||
var input = elem.parent().next('input');
|
var input = elem.parent().siblings('input');
|
||||||
if ((input.prop('type') === 'password' && click) || !input.val()) {
|
if ((input.prop('type') === 'password' && click) || !input.val()) {
|
||||||
input.prop('type', 'text');
|
input.prop('type', 'text');
|
||||||
elem.children('.fa').removeClass('fa-eye-slash').addClass('fa-eye');
|
elem.children('.fa').removeClass('fa-eye-slash').addClass('fa-eye');
|
||||||
|
|
|
@ -80,7 +80,12 @@
|
||||||
<label for="http_password">HTTP Password</label>
|
<label for="http_password">HTTP Password</label>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-8">
|
<div class="col-xs-8">
|
||||||
<input type="password" class="form-control auth-settings" id="http_password" name="http_password" value="" size="30" autocomplete="new-password">
|
<div class="input-group">
|
||||||
|
<input type="password" class="form-control auth-settings" id="http_password" name="http_password" value="" size="30" autocomplete="new-password">
|
||||||
|
<span class="input-group-btn">
|
||||||
|
<button class="btn btn-form reveal-token" type="button"><i class="fa fa-eye-slash"></i></button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue