From ded12a563f4973dfaee3cdaf339423bdb0492b65 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 19 Jun 2008 16:22:44 +0000 Subject: Removing the hoverover menu. Refs #58 git-svn-id: https://code.elgg.org/elgg/trunk@1000 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/profile.js | 37 +++++++++----------------- mod/profile/views/default/profile/metatags.php | 8 +++++- 2 files changed, 20 insertions(+), 25 deletions(-) (limited to 'mod/profile') 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 - * @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 @@ ?> - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3