summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_router_advertisements.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-10-27 10:16:31 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-10-27 10:17:03 -0400
commit0bc61baaa862ad58171fcfde07be91db9245145c (patch)
tree9973f5f1968028506c94dac99859959b8e9ca954 /src/usr/local/www/services_router_advertisements.php
parent1474131881232906c9200ccc2da38f6ea5c9c5f3 (diff)
downloadpfsense-0bc61baaa862ad58171fcfde07be91db9245145c.zip
pfsense-0bc61baaa862ad58171fcfde07be91db9245145c.tar.gz
Javascript refine to hide Delete row button if there is only one row
Diffstat (limited to 'src/usr/local/www/services_router_advertisements.php')
-rw-r--r--src/usr/local/www/services_router_advertisements.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/services_router_advertisements.php b/src/usr/local/www/services_router_advertisements.php
index 8c001f9..05155a0 100644
--- a/src/usr/local/www/services_router_advertisements.php
+++ b/src/usr/local/www/services_router_advertisements.php
@@ -409,6 +409,8 @@ print($form);
<script>
//<![CDATA[
events.push(function(){
+ // Suppress "Delete row" button if there are fewer than two rows
+ checkLastRow();
// --------- Autocomplete -----------------------------------------------------------------------------------------
var addressarray = <?= json_encode(get_alias_list(array("host", "network", "openvpn", "urltable"))) ?>;
OpenPOWER on IntegriCloud