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

View File

@ -155,9 +155,9 @@ Discourse = Ember.Application.createWithMixins({
},
authenticationComplete: function(options) {
// TODO, how to dispatch this to the view without the container?
var loginView = Discourse.__container__.lookup('controller:modal').get('currentView');
return loginView.authenticationComplete(options);
// TODO, how to dispatch this to the controller without the container?
var loginController = Discourse.__container__.lookup('controller:login');
return loginController.authenticationComplete(options);
},
/**