mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added presenter placeholders
This commit is contained in:
26
public_html/js/Presenters/PostListPresenter.js
Normal file
26
public_html/js/Presenters/PostListPresenter.js
Normal file
@ -0,0 +1,26 @@
|
||||
var App = App || {};
|
||||
App.Presenters = App.Presenters || {};
|
||||
|
||||
App.Presenters.PostListPresenter = function(
|
||||
jQuery,
|
||||
topNavigationPresenter) {
|
||||
|
||||
var $el = jQuery('#content');
|
||||
|
||||
function init(args) {
|
||||
topNavigationPresenter.select('posts');
|
||||
render();
|
||||
}
|
||||
|
||||
function render() {
|
||||
$el.html('Post list placeholder');
|
||||
};
|
||||
|
||||
return {
|
||||
init: init,
|
||||
render: render,
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
App.DI.register('postListPresenter', App.Presenters.PostListPresenter);
|
Reference in New Issue
Block a user