Commit 0b332a4b authored by Nigel McNie's avatar Nigel McNie
Browse files

Make index.js.php respect ArtefactTypeBlog::pagination

parent 9ed45f15
...@@ -46,6 +46,8 @@ $enc_cannotdeleteblogpost = json_encode(get_string('cannotdeleteblogpost', 'arte ...@@ -46,6 +46,8 @@ $enc_cannotdeleteblogpost = json_encode(get_string('cannotdeleteblogpost', 'arte
$enc_publish_help = json_encode(get_help_icon('artefact', 'blog', null, null, null, 'publish')); $enc_publish_help = json_encode(get_help_icon('artefact', 'blog', null, null, null, 'publish'));
$limit = ArtefactTypeBlog::pagination;
return <<<EOJAVASCRIPT return <<<EOJAVASCRIPT
var postlist = new TableRenderer( var postlist = new TableRenderer(
...@@ -53,7 +55,7 @@ var postlist = new TableRenderer( ...@@ -53,7 +55,7 @@ var postlist = new TableRenderer(
'index.json.php', 'index.json.php',
[undefined, undefined, undefined] [undefined, undefined, undefined]
); );
postlist.limit = 10; postlist.limit = $limit;
postlist.rowfunction = function(d, n, gd) { postlist.rowfunction = function(d, n, gd) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment