szurubooru/public_html/js/Presenters/HelpPresenter.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.HelpPresenter = 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('help');
topNavigationPresenter.changeTitle('Help');
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('Help 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('helpPresenter', ['jQuery', 'topNavigationPresenter'], App.Presenters.HelpPresenter);