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() {
|
2014-09-03 09:10:26 +02:00
|
|
|
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 {
|
2014-09-03 09:10:26 +02:00
|
|
|
init: init,
|
2014-08-31 23:22:56 +02:00
|
|
|
render: render
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
App.DI.register('userListPresenter', App.Presenters.UserListPresenter);
|