From b6ba57f67e16297fcb8b61460fb58f561122fdeb Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 30 Apr 2014 22:45:18 -0700 Subject: Fix Bug #3627 Diagnostics: Tables - Remove button dont work after update to PfSense 2.1.2 This annoyed me also, so I thought it worth finding what changes exactly broke this. del_entry was broken on 2.1 branch by https://github.com/pfsense/pfsense/commit/fe3088b965a99772e76622d17ceae87288471edc These 2 small changes make it work again without needing to reverse the other bits of stuff in that commit. Note that Master does not have that commit at all. There are lots of these "XHTML Compliance" and similar commits in 2.1 branch that are not done in master. I don't understand why that is. Why don't those code cleanups also need to be applied to master? --- usr/local/www/diag_tables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index fdfc99a..00eba74 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -106,7 +106,7 @@ if ($savemsg) print_info_box($savemsg); window.location='diag_tables.php?type=' + entrytype; } function del_entry(entry) { - jQuery.ajax("diag_tables.php?type=&delete=" + entry, { + jQuery.ajax("diag_tables.php?type=&delete=" + entry, { complete: function(response) { if (200 == response.status) { // Escape all dots to not confuse jQuery selectors @@ -154,7 +154,7 @@ if ($savemsg) print_info_box($savemsg); - + -- cgit v1.1