From a0fb2268f3efb40aabe544bb5a970c627d8d8f6b Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Fri, 6 Nov 2015 14:04:45 -0500 Subject: [PATCH] Fix cosmetic infoblock issue when there is more than one info_box on a page --- src/usr/local/www/jquery/pfSenseHelpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js index 8ffca5c299..9ba913585d 100644 --- a/src/usr/local/www/jquery/pfSenseHelpers.js +++ b/src/usr/local/www/jquery/pfSenseHelpers.js @@ -371,8 +371,8 @@ $('[id^=delete]').click(function(event) { if($('#infoblock').length != 0) { $('#infoblock').before(''); - // and remove the 'X' button from the text box - $('.close').remove(); + // and remove the 'X' button from the last text box (Which we assume to be the infoblock) + $('.close :last').remove(); } // Hide information on page load