diff options
Diffstat (limited to 'mod/profile/profile.js')
-rw-r--r-- | mod/profile/profile.js | 37 |
1 files changed, 13 insertions, 24 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 +});
|