mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Fixed a bunch of 'best of' errors and cleaned up JS.
This commit is contained in:
@ -49,7 +49,7 @@ Discourse.AdminCustomizeController = Ember.Controller.extend({
|
||||
var selected;
|
||||
if (result) {
|
||||
selected = _this.get('content.selectedItem');
|
||||
selected["delete"]();
|
||||
selected.destroy();
|
||||
_this.set('content.selectedItem', null);
|
||||
return _this.get('content').removeObject(selected);
|
||||
}
|
||||
|
Reference in New Issue
Block a user