summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/jquery
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-07 13:56:51 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-07 13:56:51 -0500
commit3568193009b7c2b5bde38e913f6e87dfa9265a12 (patch)
treee2445847e89928f68d3aff40377f951fb9460416 /src/usr/local/www/jquery
parent6ac8623c18029152d119a43e50623c259f62f013 (diff)
downloadpfsense-3568193009b7c2b5bde38e913f6e87dfa9265a12.zip
pfsense-3568193009b7c2b5bde38e913f6e87dfa9265a12.tar.gz
Change the automatic information block to look for <div class="infoblock" instrad of <div id="infoblock"
Just makes more sense to use a class for this
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r--src/usr/local/www/jquery/pfSenseHelpers.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index 6d02d2d..61c6793 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -387,19 +387,19 @@ $('[id^=delete]').click(function(event) {
// "More information" handlers
// If there is an infoblock, automatically add an info icon that toggles its display
-if($('#infoblock,#infoblock_open').length != 0) {
- $('#infoblock,#infoblock_open').before('<i class="fa fa-info-circle icon-pointer" style="color: #337AB7;; font-size:20px; margin-left: 10px; margin-bottom: 10px;" id="showinfo" title="More information"></i>');
+if($('.infoblock,.infoblock_open,#infoblock').length != 0) {
+ $('.infoblock,.infoblock_open,#infoblock').before('<i class="fa fa-info-circle icon-pointer" style="color: #337AB7;; font-size:20px; margin-left: 10px; margin-bottom: 10px;" id="showinfo" title="More information"></i>');
// 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
-$('#infoblock').hide();
+$('.infoblock,#infoblock').hide();
// Show the help on clicking the info icon
$('#showinfo').click(function() {
- $('#infoblock,#infoblock_open').toggle();
+ $('.infoblock,.infoblock_open,#infoblock').toggle();
});
// Put a dummy row into any empty table to keep IE happy
OpenPOWER on IntegriCloud