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/firewall_aliases_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/firewall_aliases_edit.php')
-rwxr-xr-x | src/usr/local/www/firewall_aliases_edit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php index 3b9cfaf..8f3198b 100755 --- a/src/usr/local/www/firewall_aliases_edit.php +++ b/src/usr/local/www/firewall_aliases_edit.php @@ -810,6 +810,9 @@ events.push(function(){ // On load . . typechange(); + + // Suppress "Delete row" button if there are fewer than two rows + checkLastRow(); // Autocomplete var addressarray = <?= json_encode(array_exclude($pconfig['name'], get_alias_list($pconfig['type']))) ?>; |