aboutsummaryrefslogtreecommitdiff
path: root/js/lib/ui.widgets.js
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-08 18:24:29 -0500
committercash <cash.costello@gmail.com>2011-12-08 18:24:29 -0500
commitc6f8f70f0fd86edf35f6efdef08ff44cb0429778 (patch)
treeae97b0d2a4577c21f169f46735742dcb59fed569 /js/lib/ui.widgets.js
parent19a8af878b74dd9e840fb45c1be4c3a61e93cd64 (diff)
parent57e3793a560b9b376b037d5bfe3f1aafaa90c78d (diff)
downloadelgg-c6f8f70f0fd86edf35f6efdef08ff44cb0429778.tar.gz
elgg-c6f8f70f0fd86edf35f6efdef08ff44cb0429778.tar.bz2
Merge branch '1.8'
Diffstat (limited to 'js/lib/ui.widgets.js')
-rw-r--r--js/lib/ui.widgets.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js
index 6435d2147..f12ae02c1 100644
--- a/js/lib/ui.widgets.js
+++ b/js/lib/ui.widgets.js
@@ -124,15 +124,9 @@ elgg.ui.widgets.remove = function(event) {
$widget.remove();
- // elgg-widget-delete-button-<guid>
- var id = $(this).attr('id');
- id = id.substr(id.indexOf('elgg-widget-delete-button-') + "elgg-widget-delete-button-".length);
+ // delete the widget through ajax
+ elgg.action($(this).attr('href'));
- elgg.action('widgets/delete', {
- data: {
- widget_guid: id
- }
- });
event.preventDefault();
};