MCPcopy
hub / github.com/writefreely/writefreely / initialListPop

Function initialListPop

static/js/posts.js:103–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101var posts = JSON.parse(H.get('posts', '[]'));
102
103var initialListPop = function() {
104 pages = Math.ceil(posts.length / postsPerPage);
105
106 loadPage(page, true);
107};
108
109var $posts = H.getEl("posts");
110if ($posts.el == null) {

Callers 1

posts.jsFile · 0.85

Calls 1

loadPageFunction · 0.85

Tested by

no test coverage detected