Refactor: Back all modals by controllers

This commit is contained in:
Robin Ward
2013-05-30 14:12:33 -04:00
parent e0dae88885
commit 0af0a214b2
74 changed files with 1555 additions and 1382 deletions
@@ -16,15 +16,6 @@ Discourse.TopicAdminMenuController = Discourse.ObjectController.extend({
hide: function() {
this.set('visible', false);
},
autoClose: function() {
var modalController = this.get('controllers.modal');
if (modalController) {
var v = Discourse.EditTopicAutoCloseView.create();
v.set('topic', this.get('content'));
modalController.show(v);
}
}
});