2014-09-07 19:49:11 +02:00
|
|
|
var App = App || {};
|
|
|
|
App.Presenters = App.Presenters || {};
|
|
|
|
|
|
|
|
App.Presenters.CommentListPresenter = 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('comments');
|
2014-09-11 13:59:12 +02:00
|
|
|
topNavigationPresenter.changeTitle('Comments');
|
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('Comment list placeholder');
|
2014-09-08 22:02:28 +02:00
|
|
|
}
|
2014-09-07 19:49:11 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
init: init,
|
|
|
|
render: render,
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2014-09-11 12:33:44 +02:00
|
|
|
App.DI.register('commentListPresenter', ['jQuery', 'topNavigationPresenter'], App.Presenters.CommentListPresenter);
|