You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title changed from Avatar menu missing in dashboard to Avatar menu missing in riverdashboard when using ajax selector for all, friends, mine by cash on 40746115-03-22
I think Evan is better equipped than me to handle this one.
The issue is that the setup_avatar_menu() function is run on document ready. When the ajax returns the new html for the page after selecting "friends", setup_avatar_menu() is not called.
Our JavaScript guy has also overridden the default profile javascript for setup_avatar_menu() by adding a parent parameter. He may have done that so setup_avatar_menu is only run on one section of the page when called in an ajax callback.
His function starts out like this:
function setup_avatar_menu(parent) {
if (!parent) {
parent = document;
}
// avatar image menu link
$(parent).find("div.usericon img").mouseover(function() {
...
The only other change he made was
// avatar contextual menu
$(parent).find(".avatar_menu_button img").click(function(e) {
instead of
// avatar contextual menu
$(".avatar_menu_button img").click(function(e) {
(In [svn:7008]) Fixes #2493: Added optional parent argument to profile's setup_avatar_menu(). Added JS in riverdashboard to rebuild the avatar menu when loading sections via ajax.
Original ticket http://trac.elgg.org/ticket/2493 on 40739123-12-16 by trac user Gillie, assigned to unknown.
Elgg version: 1.7
The arrow and avatar dropdown menu dissapear from user icons when switching between all, following, mine in the riverdashboard.
Regards gillie
The text was updated successfully, but these errors were encountered: