Fixed DeleteComponent on Container Page.

This commit is contained in:
Nimisha Asthagiri
2014-05-23 10:27:18 -04:00
committed by Calen Pennington
parent 29f7fe14fb
commit 21ddc7db00
3 changed files with 15 additions and 7 deletions

View File

@@ -152,9 +152,12 @@ define(["jquery", "underscore", "gettext", "js/views/feedback_notification",
type: 'DELETE',
url: self.getURLRoot() + "/" +
xblockElement.data('locator') + "?" +
$.param({recurse: true, all_versions: true})
$.param({recurse: true, all_versions: false})
}).success(function() {
// get the parent so we can remove this component from its parent.
var parent = self.findXBlockElement(xblockElement.parent());
xblockElement.remove();
self.xblockView.updateChildren(parent);
});
});
});