aboutsummaryrefslogtreecommitdiff
path: root/js/lib/ui.js
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 16:56:08 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 16:56:08 +0000
commite0f9cf7439891b0bb08164baba08b64cbabe2006 (patch)
tree208e87ed1b2989fcbda9dc09f0f1e286712c963a /js/lib/ui.js
parent5949dbad2a6aa3512256900862a1833a62ebabcc (diff)
downloadelgg-e0f9cf7439891b0bb08164baba08b64cbabe2006.tar.gz
elgg-e0f9cf7439891b0bb08164baba08b64cbabe2006.tar.bz2
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
Diffstat (limited to 'js/lib/ui.js')
-rw-r--r--js/lib/ui.js6
1 files changed, 3 insertions, 3 deletions
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");