summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_ntpd.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_ntpd.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_ntpd.php')
-rw-r--r--src/usr/local/www/services_ntpd.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/services_ntpd.php b/src/usr/local/www/services_ntpd.php
index 36af8b7..6b368a4 100644
--- a/src/usr/local/www/services_ntpd.php
+++ b/src/usr/local/www/services_ntpd.php
@@ -554,6 +554,9 @@ events.push(function(){
hideCheckbox('notrap', true);
hideInput('leaptext', true);
hideInput('leapfile', true);
+
+ // Suppress "Delete row" button if there are fewer than two rows
+ checkLastRow();
});
//]]>
</script>
OpenPOWER on IntegriCloud