aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 16:22:44 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 16:22:44 +0000
commitded12a563f4973dfaee3cdaf339423bdb0492b65 (patch)
treefca73799d3c8d06777a1ba9970afc956d12f8aff /mod
parent48952c8491eee9e31e60d41a238a7d8c242810e5 (diff)
downloadelgg-ded12a563f4973dfaee3cdaf339423bdb0492b65.tar.gz
elgg-ded12a563f4973dfaee3cdaf339423bdb0492b65.tar.bz2
Removing the hoverover menu. Refs #58
git-svn-id: https://code.elgg.org/elgg/trunk@1000 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-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