aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/javascript.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/profile/views/default/profile/javascript.php b/mod/profile/views/default/profile/javascript.php
index b7770de05..f5dd5be68 100644
--- a/mod/profile/views/default/profile/javascript.php
+++ b/mod/profile/views/default/profile/javascript.php
@@ -16,7 +16,7 @@
?>
-$(document).ready(function() {
+function setup_avatar_menu() {
// avatar image menu link
$("div.usericon img").mouseover(function() {
@@ -90,6 +90,12 @@ $(document).ready(function() {
$(".avatar_menu_button").hide();
}
});
-
+
+
+}
+
+$(document).ready(function() {
+
+ setup_avatar_menu();
});