diff options
author | Ismayil Khayredinov <ismayil.khayredinov@hypejunction.com> | 2011-12-15 05:20:57 +0100 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-18 17:59:39 -0500 |
commit | bd5c0005158ca136fe87b34dacdf75491e69ed03 (patch) | |
tree | 11b11cf73ed880a63256a1f7e43f67fcb6d830fd /js | |
parent | 2aa0e3846b60a44c6f2dbfe2f9a690776533dca3 (diff) | |
download | elgg-bd5c0005158ca136fe87b34dacdf75491e69ed03.tar.gz elgg-bd5c0005158ca136fe87b34dacdf75491e69ed03.tar.bz2 |
Fix #4200: Converting widgets controls into an elgg menu
Diffstat (limited to 'js')
-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'); |