From ed54644bb6c63f1a9fa26fdbe736a481afc3ed79 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Thu, 21 Apr 2016 10:04:15 -0400 Subject: Updated #6092 as requested (cherry picked from commit a7893b72fe9405293ad23d29d03e8985ede796d4) --- src/usr/local/www/firewall_rules.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www/firewall_rules.php') diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index a431765..dc9c192 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -69,8 +69,8 @@ require_once("filter.inc"); require_once("ipsec.inc"); require_once("shaper.inc"); -$XmoveTitle = gettext("Move checked rules above this one"); -$ShXmoveTitle = gettext("Move checked rules below this one"); +$XmoveTitle = gettext("Move checked rules above this one. Shift+Click to move checked rules below."); +$ShXmoveTitle = gettext("Move checked rules below this one. Release shift to move checked rules above."); $pgtitle = array(gettext("Firewall"), gettext("Rules")); $shortcut_section = "firewall"; @@ -950,7 +950,14 @@ events.push(function() { $('#order-store').removeAttr('disabled'); reindex_rules($(anchor_row).parent('tbody')); dirty = true; - + }).mouseover(function(e) { + if (e.shiftKey) { + $(this).parents('tr').css('border-bottom', '4px solid green'); + } else { + $(this).parents('tr').css('border-top', '4px solid green'); + } + }).mouseout(function(e) { + $(this).parents('tr').css('border', '0px'); }); // Make rules sortable. Hiding the table before applying sortable, then showing it again is -- cgit v1.1