summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-06-13 13:01:49 -0300
committerccesario <carloscesario@gmail.com>2012-06-13 13:01:49 -0300
commit6c9ce30d09b4bf88f17e520d17b1d25bb0d0e5d9 (patch)
tree68150c04ff03a6006b7e9b22e1257201429c0570 /usr/local
parent6f50fcb857241992848cc6231fa11a82cd200424 (diff)
downloadpfsense-6c9ce30d09b4bf88f17e520d17b1d25bb0d0e5d9.zip
pfsense-6c9ce30d09b4bf88f17e520d17b1d25bb0d0e5d9.tar.gz
Define the menu size dynamically
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/themes/pfsense_ng/loader.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/themes/pfsense_ng/loader.js b/usr/local/www/themes/pfsense_ng/loader.js
index 5eb41e1..ae38864 100644
--- a/usr/local/www/themes/pfsense_ng/loader.js
+++ b/usr/local/www/themes/pfsense_ng/loader.js
@@ -26,4 +26,11 @@ if (browser == 'IE' && version < 7) {
document.write('<script type="text/javascript" src="/themes/nervecenter/javascript/niftyjsCode.js"></scr'+'ipt>');
+// jQuery function to define dropdown menu size
+jQuery(document).ready(function () {
+ var hwindow = '';
+ hwindow = (jQuery(window).height()-100);
+ // Force the size dropdown menu
+ jQuery('#navigation ul li ul').css('max-height', hwindow);
+});
// -->
OpenPOWER on IntegriCloud