diff options
author | cash <cash.costello@gmail.com> | 2011-09-21 20:57:33 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-09-21 20:57:33 -0400 |
commit | 9a44acd27b0f8fb63cd07af7e7232f6c2b29ecf5 (patch) | |
tree | 2303e4dc4cc21acfe0e0cc3001365837f0803627 /js | |
parent | c4ba4f5fadb75bbb93186bfc72af977e3a8475a6 (diff) | |
download | elgg-9a44acd27b0f8fb63cd07af7e7232f6c2b29ecf5.tar.gz elgg-9a44acd27b0f8fb63cd07af7e7232f6c2b29ecf5.tar.bz2 |
Fixes #3770 CSS only site menu that works in IE7
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/ui.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/js/lib/ui.js b/js/lib/ui.js index 46e418e8b..7abf7626f 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -22,13 +22,6 @@ elgg.ui.init = function () { if ($('.elgg-input-date').length) { elgg.ui.initDatePicker(); } - - // fix for ie7 CSS issue on menu dropdown - // open the menu when you hover over it, close when you click off of it. - // @todo This should be possible with CSS. Anyone want to tame the beast, go for it. - if ($.browser.msie && $.browser.version <= 7) { - $('.elgg-menu-site > .elgg-more').live('mouseenter', elgg.ui.ie7MenuFixMouseEnter) - } } /** @@ -282,32 +275,6 @@ elgg.ui.initDatePicker = function() { }); } -/** - * IE 7 doesn't like our site menu system CSS, so open it with JS. - */ -elgg.ui.ie7MenuFixMouseEnter = function() { - $('.elgg-menu-site .elgg-menu-site-more').css('display', 'block'); - $('.elgg-menu-site .elgg-more > a') - .css('background-color', 'white') - .css('color', '#555') - - $body = $('body'); - if (!$body.data('hasIe7Clear')) { - $body.live('click', elgg.ui.ie7MenuClear); - $body.data('hasIe7Clear', true); - } - -} - -/** - * Close the menu when clicking on the body - */ -elgg.ui.ie7MenuClear = function() { - $('.elgg-menu-site .elgg-menu-site-more').css('display', 'none'); - $('.elgg-menu-site .elgg-more > a') - .css('background-color', 'transparent') - .css('color', 'white') -} elgg.register_hook_handler('init', 'system', elgg.ui.init); elgg.register_hook_handler('getOptions', 'ui.popup', elgg.ui.LoginHandler);
\ No newline at end of file |