aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/profile.js37
-rw-r--r--mod/profile/views/default/profile/metatags.php8
2 files changed, 20 insertions, 25 deletions
diff --git a/mod/profile/profile.js b/mod/profile/profile.js
index 278793c27..3695ff6a8 100644
--- a/mod/profile/profile.js
+++ b/mod/profile/profile.js
@@ -1,24 +1,5 @@
- /**
- * Elgg profile javascript library
- *
- * @package ElggProfile
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- */
-
-function remove_user_menu() {
-
- $("#user_menu").hover(function() {}, function () {
- $("#user_menu").remove();
- });
-
-};
-
-$(document).ready(function () {
+$(document).ready(function() {
$("a.icon").hover(function(e) {
@@ -31,11 +12,11 @@ $(document).ready(function () {
var top = e.pageY - 10;
var left = e.pageX - 10;
- if ((left + 10 + $("#user_menu").width()) > (dwidth - 10)) {
- left = dwidth - $("#user_menu").width() - 50;
+ if ((left + 10 + $("div#user_menu").width()) > (dwidth - 10)) {
+ left = dwidth - $("div#user_menu").width() - 50;
}
- $("#user_menu")
+ $("div#user_menu")
.css("top",(top) + "px")
.css("left",(left) + "px")
.fadeIn("medium");
@@ -44,5 +25,13 @@ $(document).ready(function () {
remove_user_menu();
});
+
+ function remove_user_menu() {
+
+ $("div#user_menu").hover(function() {}, function () {
+ $("div#user_menu").remove();
+ });
+ }
+
-}); \ No newline at end of file
+});
diff --git a/mod/profile/views/default/profile/metatags.php b/mod/profile/views/default/profile/metatags.php
index 202105d94..1be959c5a 100644
--- a/mod/profile/views/default/profile/metatags.php
+++ b/mod/profile/views/default/profile/metatags.php
@@ -13,4 +13,10 @@
?>
- <script type="text/javascript" src="<?php echo $vars['url']; ?>mod/profile/profile.js" ></script> \ No newline at end of file
+ <!--
+
+ Removed for now.
+
+ <script type="text/javascript" src="<?php echo $vars['url']; ?>mod/profile/profile.js" ></script>
+
+ --> \ No newline at end of file