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:
glaszig
2019-08-01 17:37:48 +02:00
parent d18dbd7def
commit afbc50d1ee
2 changed files with 5 additions and 1 deletions

View File

@@ -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();});