Hide password textbox if there is no password
This commit is contained in:
parent
e7589945a2
commit
009fa2f1b7
|
@ -218,6 +218,7 @@ if (explode("-", $phVersion)[1] != "0")
|
||||||
// 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);';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -273,7 +274,7 @@ if (explode("-", $phVersion)[1] != "0")
|
||||||
|
|
||||||
<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/><button id="bpWhitelist" type="button" disabled></button>
|
<input id="bpWLPassword" type="password" placeholder="<?=$wlPlaceHolder ?>" disabled style="display: none"/><button id="bpWhitelist" type="button" disabled></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue