summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dnsmasq_edit.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2016-11-11 11:37:01 -0500
committerSteve Beaver <sbeaver@netgate.com>2016-11-11 11:37:01 -0500
commit75ac7cab1dfb3e8148a27a13369bbb08219e8c3a (patch)
tree074e99d647c4f1c8321e86437872b8d208321a0a /src/usr/local/www/services_dnsmasq_edit.php
parent38fe6f07922c8ee6bde81ba1f07ab6ffe380f12b (diff)
downloadpfsense-75ac7cab1dfb3e8148a27a13369bbb08219e8c3a.zip
pfsense-75ac7cab1dfb3e8148a27a13369bbb08219e8c3a.tar.gz
Suppress delete button if only one row
Diffstat (limited to 'src/usr/local/www/services_dnsmasq_edit.php')
-rw-r--r--src/usr/local/www/services_dnsmasq_edit.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dnsmasq_edit.php b/src/usr/local/www/services_dnsmasq_edit.php
index 1d7062a..9a8acd7 100644
--- a/src/usr/local/www/services_dnsmasq_edit.php
+++ b/src/usr/local/www/services_dnsmasq_edit.php
@@ -293,3 +293,12 @@ $form->add($section);
print($form);
include("foot.inc");
+?>
+<script type="text/javascript">
+//<![CDATA[
+ events.push(function() {
+ // Suppress "Delete row" button if there are fewer than two rows
+ checkLastRow();
+});
+//]]>
+</script> \ No newline at end of file
OpenPOWER on IntegriCloud