diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-11 19:27:54 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-11 19:28:31 -0500 |
commit | f4c114d4a6fcfcd7e69e6a009db683d78d83189d (patch) | |
tree | f0649b54cbd17d566fc2fd143939eb22f2d41d1a /src/usr/local/www | |
parent | 8f10bc95dc9151d2081fc37e55b7e8a07657de9d (diff) | |
download | pfsense-f4c114d4a6fcfcd7e69e6a009db683d78d83189d.zip pfsense-f4c114d4a6fcfcd7e69e6a009db683d78d83189d.tar.gz |
Revise auto infoblock to accommodate initially open divs
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/jquery/pfSenseHelpers.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js index e2a871e..f447b65 100644 --- a/src/usr/local/www/jquery/pfSenseHelpers.js +++ b/src/usr/local/www/jquery/pfSenseHelpers.js @@ -391,25 +391,19 @@ $('[id^=delete]').click(function(event) { $('[class^="infoblock"], [class^="infoblock_open"]').each(function() { var classname = $(this).attr("class"); - var sfx = ''; + var sfx = classname.substr(9); - if (classname.indexOf("infoblock_open")) { - sfx = classname.substr(15); + if (classname.indexOf("infoblock_open") == -1) { $(this).hide(); - } else { - sfx = "_" + classname.substr(10); } $(this).before('<i class="fa fa-info-circle icon-pointer" style="color: #337AB7; font-size:20px; margin-left: 10px; margin-bottom: 10px;" id="showinfo' + sfx + '" title="More information"></i>'); }); -// Hide information on page load -//$('.infoblock,#infoblock').hide(); - // Show the help on clicking the info icon $('[id^="showinfo"]').click(function() { var id = $(this).attr("id"); - var target = "infoblock" + id.substr(8); + var target = "infoblock" + id.substr(8); $('.' + target).toggle(); }); |