mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
Refactor: Back all modals by controllers
This commit is contained in:
parent
e0dae88885
commit
0af0a214b2
74 changed files with 1555 additions and 1382 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue