Commit 3f0b5df1ce4742fe9ae10ed78958903abf75835e
Committed by
Antonio Terceiro
1 parent
7c034781
Exists in
master
and in
22 other branches
Fixing z-index conflict in IE
(ActionItem1754)
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
public/javascripts/application.js
... | ... | @@ -234,8 +234,18 @@ function expandCategory(block, id) { |
234 | 234 | } |
235 | 235 | } |
236 | 236 | |
237 | +function ieZIndexBugFix(trigger) { | |
238 | + if (jQuery.browser.msie && parseInt(jQuery.browser.version) == 7) { | |
239 | + jQuery('#navigation').css({ zIndex : 6 }); | |
240 | + jQuery('.box-2, .box-3').css({ zIndex : 5 }); | |
241 | + jQuery(trigger).parents('.box-2, .box-3').css({ zIndex : 11 }); | |
242 | + } | |
243 | +} | |
244 | + | |
237 | 245 | function toggleSubmenu(trigger, title, link_list) { |
246 | + ieZIndexBugFix(trigger); | |
238 | 247 | trigger.onclick = function() { |
248 | + ieZIndexBugFix(trigger); | |
239 | 249 | var submenu = jQuery(trigger).siblings('.menu-submenu'); |
240 | 250 | var hide = false; |
241 | 251 | if (submenu.length > 0 && submenu.is(':visible')) hide = true; | ... | ... |