From f27e928df0f04f71e2688ef9d2bc095710991dd0 Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 15 Jul 2008 12:09:32 +0000 Subject: javascript menu dropdown IE bug fixed for friends widget, still an issue with friends of git-svn-id: https://code.elgg.org/elgg/trunk@1425 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/css.php | 2 +- mod/profile/views/default/profile/javascript.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php index 1585b963f..8ae78601b 100644 --- a/mod/profile/views/default/profile/css.php +++ b/mod/profile/views/default/profile/css.php @@ -24,7 +24,7 @@ } .usericon div.sub_menu { - z-index:9999; + /* z-index:9999; */ display:none; position:absolute; padding:2px; diff --git a/mod/profile/views/default/profile/javascript.php b/mod/profile/views/default/profile/javascript.php index f5dd5be68..e0f87522c 100644 --- a/mod/profile/views/default/profile/javascript.php +++ b/mod/profile/views/default/profile/javascript.php @@ -59,6 +59,14 @@ function setup_avatar_menu() { .css("left",(avatar.width()-166) + "px") .fadeIn('normal'); } + + // fix for z-index / jquery bug in IE - TO DO: wrap this in a conditional statement - no need to do this calculation for other browsers + $(this).css("z-index", parseInt( new Date().getTime()/1000 )); + avatar.css("z-index", parseInt( new Date().getTime()/1000 )); + submenu.css("z-index", parseInt( new Date().getTime()/1000 )); + + //alert("z-index = " +avatar.css("z-index")); + // change arrow to 'on' state $(this).attr('src','_graphics/avatar_menu_arrow_open.gif'); } -- cgit v1.2.3