mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-25 22:09:49 +00:00
Fix password Enter handling
Also remove extranious form information, since JS handles that
This commit is contained in:
parent
7fd7430d38
commit
ab2c486f25
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue