szurubooru/public_html/js/Presenters/UserListPresenter.js

25 lines
461 B
JavaScript
Raw Normal View History

2014-08-31 23:22:56 +02:00
var App = App || {};
App.Presenters = App.Presenters || {};
App.Presenters.UserListPresenter = function(jQuery, topNavigationPresenter, appState) {
var $el = jQuery('#content');
2014-09-02 23:07:50 +02:00
function init() {
topNavigationPresenter.select('users');
2014-09-02 23:07:50 +02:00
render();
}
2014-08-31 23:22:56 +02:00
function render() {
$el.html('Logged in: ' + appState.get('loggedIn'));
};
return {
init: init,
2014-08-31 23:22:56 +02:00
render: render
};
};
App.DI.register('userListPresenter', App.Presenters.UserListPresenter);