diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-05 22:46:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-05 22:46:28 +0000 |
commit | e5227e9221edbce84eee82af7f2c9903de702f37 (patch) | |
tree | 5e402b5508a8af64ff40761087926dd0f9443303 /js/lib | |
parent | 577eb6f725449fea5738ca122eedb5e4b2c8ff56 (diff) | |
download | elgg-e5227e9221edbce84eee82af7f2c9903de702f37.tar.gz elgg-e5227e9221edbce84eee82af7f2c9903de702f37.tar.bz2 |
Fixes #2559 refs #2475 added ElggEntity:getIconURL() and elgg_view_entity_icon()
git-svn-id: http://code.elgg.org/elgg/trunk@8039 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/ui.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/ui.js b/js/lib/ui.js index bf918cbf4..2ea0ccc46 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -94,7 +94,7 @@ elgg.ui.initHoverMenu = function(parent) { } // avatar image menu link - $(parent).find(".elgg-user-icon").mouseover(function() { + $(parent).find(".elgg-avatar").mouseover(function() { $(this).children(".elgg-icon-hover-menu").show(); }) .mouseout(function() { @@ -103,7 +103,7 @@ elgg.ui.initHoverMenu = function(parent) { // avatar contextual menu - $(".elgg-user-icon > .elgg-icon-hover-menu").click(function(e) { + $(".elgg-avatar > .elgg-icon-hover-menu").click(function(e) { var $hovermenu = $(this).parent().find(".elgg-hover-menu"); @@ -111,7 +111,7 @@ elgg.ui.initHoverMenu = function(parent) { if ($hovermenu.css('display') == "block") { $hovermenu.fadeOut(); } else { - $avatar = $(this).closest(".elgg-user-icon"); + $avatar = $(this).closest(".elgg-avatar"); $hovermenu.css("top", ($avatar.height()) + "px") .css("left", ($avatar.width()-15) + "px") .fadeIn('normal'); @@ -123,7 +123,7 @@ elgg.ui.initHoverMenu = function(parent) { // hide avatar menu when user clicks elsewhere $(document).click(function(event) { - if ($(event.target).parents(".elgg-user-icon").length == 0) { + if ($(event.target).parents(".elgg-avatar").length == 0) { $(".elgg-hover-menu").fadeOut(); } }); |