mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
Fix password Enter handling
Also remove extranious form information, since JS handles that
This commit is contained in:
parent
7fd7430d38
commit
ab2c486f25
@ -75,7 +75,7 @@ if($uri == "/")
|
|||||||
<a class='safe33' href='javascript:window.close()'>Close window</a>
|
<a class='safe33' href='javascript:window.close()'>Close window</a>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 98%; text-align: center; padding: 10px;" hidden="true" id="whitelistingform">Password required!<br/>
|
<div style="width: 98%; text-align: center; padding: 10px;" hidden="true" id="whitelistingform">Password required!<br/>
|
||||||
<form action="admin/php/add.php" method="post">
|
<form>
|
||||||
<input name="list" type="hidden" value="white"><br/>
|
<input name="list" type="hidden" value="white"><br/>
|
||||||
Domain:<br/>
|
Domain:<br/>
|
||||||
<input name="domain" value="<?php echo $serverName ?>" disabled><br/><br/>
|
<input name="domain" value="<?php echo $serverName ?>" disabled><br/><br/>
|
||||||
@ -148,7 +148,7 @@ function add() {
|
|||||||
}
|
}
|
||||||
// Handle enter button for adding domains
|
// Handle enter button for adding domains
|
||||||
$(document).keypress(function(e) {
|
$(document).keypress(function(e) {
|
||||||
if(e.which === 13 && $("#password").is(":focus")) {
|
if(e.which === 13 && $("#pw").is(":focus")) {
|
||||||
add();
|
add();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user