mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
click the "add" button on the static dhcp lease form
for people that forgot to click that button to add their lease
This commit is contained in:
parent
d18dbd7def
commit
afbc50d1ee
2 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,7 @@ function DisplayDHCPConfig()
|
|||
<!-- /.panel-heading -->
|
||||
<div class="panel-body">
|
||||
<p><?php $status->showMessages(); ?></p>
|
||||
<form method="POST" action="?page=dhcpd_conf">
|
||||
<form method="POST" action="?page=dhcpd_conf" class="js-dhcp-settings-form">
|
||||
<?php CSRFToken() ?>
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
|
|
|
@ -145,6 +145,10 @@ $(document).on("click", ".js-remove-dhcp-static-lease", function(e) {
|
|||
$(this).parents(".js-dhcp-static-lease-row").remove();
|
||||
});
|
||||
|
||||
$(document).on("submit", ".js-dhcp-settings-form", function(e) {
|
||||
$(".js-add-dhcp-static-lease").trigger("click");
|
||||
});
|
||||
|
||||
function setupBtns() {
|
||||
$('#btnSummaryRefresh').click(function(){getAllInterfaces();});
|
||||
|
||||
|
|
Loading…
Reference in a new issue