summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-10-29 10:17:50 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-10-29 10:19:00 -0400
commit65a0e193c7ca1ccfe29693fcfa3719356de97e48 (patch)
tree5d77a0be230e41bf0e01c3d19517a64f29aa8fe8 /src/usr/local/www/firewall_rules.php
parent76827b9cedc8a816023aa2b882844b883a7fa8c8 (diff)
downloadpfsense-65a0e193c7ca1ccfe29693fcfa3719356de97e48.zip
pfsense-65a0e193c7ca1ccfe29693fcfa3719356de97e48.tar.gz
Completed #5356
Refactor row toggle javascript
Diffstat (limited to 'src/usr/local/www/firewall_rules.php')
-rw-r--r--src/usr/local/www/firewall_rules.php44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index 066d2b9..db87c61 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -689,40 +689,6 @@ else
?>
<script>
-function stripe_table() {
- $("tr:odd").addClass('active');
- $("tr:even").removeClass('active');
-}
-
-function fr_toggle(id, prefix) {
- if (!prefix)
- prefix = 'fr';
-
- var checkbox = document.getElementById(prefix + 'c' + id);
- checkbox.checked = !checkbox.checked;
- fr_bgcolor(id, prefix);
-}
-
-// Change background color based on state of checkbox
-// On resetting background, reapply table striping
-function fr_bgcolor(id, prefix) {
- if (!prefix)
- prefix = 'fr';
-
- var row = $('#' + prefix + id);
-
- if ($('#' + prefix + 'c' + id).prop('checked') ) {
- row.css("background-color", "#DDF4FF");
- row.removeClass('active');
- } else {
- row.css("background-color", "#FFFFFF");
- stripe_table();
- }
-}
-
-</script>
-
-<script>
events.push(function() {
@@ -741,14 +707,6 @@ events.push(function() {
$('#order-store').click(function () {
$('[id^=frc]').prop('checked', true);
});
-
- // Replace direct delete with quicker front-end action
-/*FIXME: event ordering
- $('.btn-danger').on('click', function(e){
- $(this).parents('tr').remove();
-
- $('#order-store').removeAttr('disabled');
- });
-*/});
+});
</script>
<?php include("foot.inc");?>
OpenPOWER on IntegriCloud