szurubooru/public_html/js/Presenters/HomePresenter.js

29 lines
527 B
JavaScript
Raw Normal View History

2014-09-07 19:49:11 +02:00
var App = App || {};
App.Presenters = App.Presenters || {};
App.Presenters.HomePresenter = function(
jQuery,
topNavigationPresenter) {
var $el = jQuery('#content');
2014-09-17 22:37:49 +02:00
function init(args, loaded) {
2014-09-07 19:49:11 +02:00
topNavigationPresenter.select('home');
topNavigationPresenter.changeTitle('Home');
2014-09-07 19:49:11 +02:00
render();
2014-09-17 22:37:49 +02:00
loaded();
2014-09-07 19:49:11 +02:00
}
function render() {
$el.html('Home placeholder');
2014-09-08 22:02:28 +02:00
}
2014-09-07 19:49:11 +02:00
return {
init: init,
render: render,
};
};
App.DI.register('homePresenter', ['jQuery', 'topNavigationPresenter'], App.Presenters.HomePresenter);