1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

Revert "Hide password textbox if there is no password"

This reverts commit 009fa2f1b7.
This commit is contained in:
Mcat12 2018-01-23 20:28:43 -05:00
parent c7219fbdff
commit 1a5c86d32e
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

View File

@ -245,7 +245,6 @@ setHeader();
// Enable password input if necessary // Enable password input if necessary
if (!empty($svPasswd)) { if (!empty($svPasswd)) {
echo '$("#bpWLPassword").attr("placeholder", "Password");'; echo '$("#bpWLPassword").attr("placeholder", "Password");';
echo '$("#bpWLPassword").css("display", "inline-block");';
echo '$("#bpWLPassword").prop("disabled", false);'; echo '$("#bpWLPassword").prop("disabled", false);';
} }
} }
@ -301,7 +300,7 @@ setHeader();
<form id="bpWLButtons" class="buttons"> <form id="bpWLButtons" class="buttons">
<input id="bpWLDomain" type="text" value="<?=$serverName ?>" disabled/> <input id="bpWLDomain" type="text" value="<?=$serverName ?>" disabled/>
<input id="bpWLPassword" type="password" placeholder="<?=$wlPlaceHolder ?>" disabled style="display: none"/><button id="bpWhitelist" type="button" disabled></button> <input id="bpWLPassword" type="password" placeholder="<?=$wlPlaceHolder ?>" disabled/><button id="bpWhitelist" type="button" disabled></button>
</form> </form>
</div> </div>
</main> </main>