diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-18 18:14:42 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-18 18:14:42 -0500 |
commit | a683fa0aec68bda1b235d999b365289832c9bbdf (patch) | |
tree | 465d7ecabfca03b6ed1107e9d06fdc3a484ac0a5 /src/usr | |
parent | 576437f5b589f2b95d11fc40f6d9ee4c811a6b15 (diff) | |
download | pfsense-a683fa0aec68bda1b235d999b365289832c9bbdf.zip pfsense-a683fa0aec68bda1b235d999b365289832c9bbdf.tar.gz |
Added separator delete icon
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/firewall_rules.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index f530590..615f3bc 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -764,12 +764,18 @@ events.push(function() { var septext = $('#newsep').val(); $('#ruletable > tbody:last >tr:last').remove(); $('#ruletable > tbody:last').append('<tr class="ui-sortable-handle">' + - '<td bgcolor="#cce5ff" colspan="12">' + '<font color="#002699">' + septext + '</font></td>' + + '<td bgcolor="#cce5ff" colspan="11">' + '<font color="#002699">' + septext + '</font></td>' + + '<td bgcolor="#cce5ff"><a href="#"><i class="fa fa-trash"></i></a></td>' + '</tr>'); }); }); - + $(function(){ + $('table').on('click','tr a',function(e){ + e.preventDefault(); + $(this).parents('tr').remove(); + }); + }); }); //]]> </script> |