diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index cd05fbff0f..2d16205092 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -789,6 +789,7 @@ foreach ($a_filter as $filteri => $filterent):
+ ">
tbody > tr').each(function() {
+ ruleid = this.id.slice(2);
+
+ if (ruleid && !isNaN(ruleid)) {
+ if ($('#frc' + ruleid).prop('checked')) {
+ $(this).insertBefore(anchor_row);
+ fr_toggle(ruleid, "fr");
+ }
+ }
+ });
+
+ $('#order-store').removeAttr('disabled');
+ reindex_rules($(anchor_row).parent('tbody'));
+ dirty = true;
+
+ });
+
// Make rules sortable. Hiding the table before applying sortable, then showing it again is
// a work-around for very slow sorting on FireFox
$('table tbody.user-entries').hide();
@@ -934,7 +959,6 @@ events.push(function() {
return undefined;
}
});
-
});
//]]>
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index 70151cab39..9e90e5dabe 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -579,9 +579,15 @@ $('.container .panel-heading a[data-toggle="collapse"]').each(function (idx, el)
section.find('tr').each(function() {
if(this.id) {
$(this).attr("id", "fr" + row);
+ $(this).attr("onclick", "fr_toggle(" + row + ")")
+ $(this).find('input:checkbox:first').each(function() {
+ $(this).attr("id", "frc" + row);
+ $(this).attr("onclick", "fr_toggle(" + row + ")");
+ });
+
row++;
}
- })
+ });
}
function handle_colors() {
|