aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 12:09:32 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 12:09:32 +0000
commitf27e928df0f04f71e2688ef9d2bc095710991dd0 (patch)
tree54a8052a9448489035492278dbc61cb3fdea366f /mod/profile/views/default
parent0f358045ecba1b04a74c198514796fc1dda81d9e (diff)
downloadelgg-f27e928df0f04f71e2688ef9d2bc095710991dd0.tar.gz
elgg-f27e928df0f04f71e2688ef9d2bc095710991dd0.tar.bz2
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
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/css.php2
-rw-r--r--mod/profile/views/default/profile/javascript.php8
2 files changed, 9 insertions, 1 deletions
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','<?php echo $vars['url']; ?>_graphics/avatar_menu_arrow_open.gif');
}