aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/views/default/profile/javascript.php10
-rw-r--r--views/default/widgets/wrapper.php12
2 files changed, 20 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();
});
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 4f719e124..274f3f35d 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -65,6 +65,18 @@
echo elgg_view("widgets/{$handler}/view",$vars);
+?>
+
+<script language="javascript">
+ $(document).ready(function(){
+ setup_avatar_menu();
+ });
+
+</script>
+
+
+<?php
+
}
if ($callback != "true") {