diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-20 11:27:39 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-20 12:52:52 -0400 |
commit | 03b53522b6709f2eb346e906817c9f77a9549090 (patch) | |
tree | 4e32091003498700af146ac3466c6fcf3b67beac /src/usr/local/www/jquery | |
parent | 0cdb94e1cbf726063d1e9be30782c0fbe4c8fdc4 (diff) | |
download | pfsense-03b53522b6709f2eb346e906817c9f77a9549090.zip pfsense-03b53522b6709f2eb346e906817c9f77a9549090.tar.gz |
Partial fix for #5045
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r-- | src/usr/local/www/jquery/pfSense.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/jquery/pfSense.js b/src/usr/local/www/jquery/pfSense.js index 1b1398d..a82e6b1 100644 --- a/src/usr/local/www/jquery/pfSense.js +++ b/src/usr/local/www/jquery/pfSense.js @@ -154,8 +154,12 @@ $(function() { } }); + // The need to NOT hide the advanced options if the elements therein are not set to the system + // default values makes it better to handle advanced option hiding in each PHP file so this is being + // disabled for now changing hte class name it acts on to "auto-advanced" + // Hide advanced inputs by default - if ($('.advanced').length > 0) + if ($('.auto-advanced').length > 0) { var advButt = $('<a id="toggle-advanced" class="btn btn-default">toggle advanced options</a>'); advButt.on('click', function() { @@ -164,7 +168,7 @@ $(function() { advButt.insertAfter($('#save')); - $('.advanced').parents('.form-group').collapse({toggle: true}); + $('.auto-advanced').parents('.form-group').collapse({toggle: true}); } // Enable popovers globally |