diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-27 10:16:31 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-27 10:17:03 -0400 |
commit | 0bc61baaa862ad58171fcfde07be91db9245145c (patch) | |
tree | 9973f5f1968028506c94dac99859959b8e9ca954 /src/usr/local/www/pkg_edit.php | |
parent | 1474131881232906c9200ccc2da38f6ea5c9c5f3 (diff) | |
download | pfsense-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/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index ea04094..68886d7 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -1423,7 +1423,10 @@ if ($pkg['fields']['field'] != "") { ?> // Hide on page load $('.advancedoptions').hide(); - // But show it if you click the showadv button + // Suppress "Delete row" button if there are fewer than two rows + checkLastRow(); + + // Show advanced section if you click the showadv button $('#showadv').prop('type', 'button'); $("#showadv").click(function() { |