aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-18 18:07:26 -0500
committercash <cash.costello@gmail.com>2011-12-18 18:07:26 -0500
commit96084b19f1caba6735afad6c89e7c0336e40c078 (patch)
treea2b21c8a2fde69bd0fee8f4df57f68189a13fa10 /js
parentea3bf3b04410f56a52e8315bd636aeaf772a40a4 (diff)
parentbd5c0005158ca136fe87b34dacdf75491e69ed03 (diff)
downloadelgg-96084b19f1caba6735afad6c89e7c0336e40c078.tar.gz
elgg-96084b19f1caba6735afad6c89e7c0336e40c078.tar.bz2
Merge pull request #115 from hypeJunction/widgets_menu
Diffstat (limited to 'js')
-rw-r--r--js/lib/ui.widgets.js2
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');