diff options
author | cash <cash.costello@gmail.com> | 2011-12-18 18:07:26 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-18 18:07:26 -0500 |
commit | 96084b19f1caba6735afad6c89e7c0336e40c078 (patch) | |
tree | a2b21c8a2fde69bd0fee8f4df57f68189a13fa10 /js/lib | |
parent | ea3bf3b04410f56a52e8315bd636aeaf772a40a4 (diff) | |
parent | bd5c0005158ca136fe87b34dacdf75491e69ed03 (diff) | |
download | elgg-96084b19f1caba6735afad6c89e7c0336e40c078.tar.gz elgg-96084b19f1caba6735afad6c89e7c0336e40c078.tar.bz2 |
Merge pull request #115 from hypeJunction/widgets_menu
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/ui.widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index f12ae02c1..a44585843 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -107,7 +107,7 @@ elgg.ui.widgets.move = function(event, ui) { * @return void */ elgg.ui.widgets.remove = function(event) { - var $widget = $(this).parent().parent(); + var $widget = $(this).closest('.elgg-module-widget'); // if widget type is single instance type, enable the add buton var type = $widget.attr('class'); |