diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-07 08:30:04 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-07 08:30:53 -0500 |
commit | 49b482738c28fa1124846be28569c14ab2fa0a60 (patch) | |
tree | 52247c98b039df5c271a0d0cf12017c294d2db96 /src | |
parent | 301d868673d570342c7ea96878def645e495c675 (diff) | |
download | pfsense-49b482738c28fa1124846be28569c14ab2fa0a60.zip pfsense-49b482738c28fa1124846be28569c14ab2fa0a60.tar.gz |
Allow an infoblock to be displayed (not hidden) on page load y specifying id='infoblock_open'
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/jquery/pfSenseHelpers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js index 1959301..6d02d2d 100644 --- a/src/usr/local/www/jquery/pfSenseHelpers.js +++ b/src/usr/local/www/jquery/pfSenseHelpers.js @@ -387,8 +387,8 @@ $('[id^=delete]').click(function(event) { // "More information" handlers // If there is an infoblock, automatically add an info icon that toggles its display -if($('#infoblock').length != 0) { - $('#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>'); +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>'); // and remove the 'X' button from the last text box (Which we assume to be the infoblock) $('.close :last').remove(); @@ -399,7 +399,7 @@ $('#infoblock').hide(); // Show the help on clicking the info icon $('#showinfo').click(function() { - $('#infoblock').toggle(); + $('#infoblock,#infoblock_open').toggle(); }); // Put a dummy row into any empty table to keep IE happy |