mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added support for parameters in presenters
This commit is contained in:
@ -8,13 +8,10 @@ App.Presenters.LogoutPresenter = function(
|
||||
auth,
|
||||
router) {
|
||||
|
||||
topNavigationPresenter.select('logout');
|
||||
|
||||
var $messages = jQuery('#content');
|
||||
|
||||
init();
|
||||
|
||||
function init() {
|
||||
topNavigationPresenter.select('logout');
|
||||
auth.logout().then(function() {
|
||||
var $messageDiv = messagePresenter.showInfo($messages, 'Logged out. <a href="">Back to main page</a>');
|
||||
$messageDiv.find('a').click(mainPageLinkClicked);
|
||||
@ -28,7 +25,9 @@ App.Presenters.LogoutPresenter = function(
|
||||
router.navigateToMainPage();
|
||||
}
|
||||
|
||||
return {};
|
||||
return {
|
||||
init: init
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user