From e0f9cf7439891b0bb08164baba08b64cbabe2006 Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 19 Feb 2011 16:56:08 +0000 Subject: Avatar menus use live() so they'll work with content inserted into the dom. git-svn-id: http://code.elgg.org/elgg/trunk@8333 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/lib/ui.js b/js/lib/ui.js index 3448d6b35..f61e2faea 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -101,16 +101,16 @@ elgg.ui.initHoverMenu = function(parent) { } // avatar image menu link - $(parent).find(".elgg-avatar").mouseover(function() { + $(parent).find(".elgg-avatar").live('mouseover', function() { $(this).children(".elgg-icon-hover-menu").show(); }) - .mouseout(function() { + .live('mouseout', function() { $(this).children(".elgg-icon-hover-menu").hide(); }); // avatar contextual menu - $(".elgg-avatar > .elgg-icon-hover-menu").click(function(e) { + $(".elgg-avatar > .elgg-icon-hover-menu").live('click', function(e) { var $hovermenu = $(this).parent().find(".elgg-menu-hover"); -- cgit v1.2.3