Paging for LibraryView added with JS tests.

This commit is contained in:
E. Kolpakov
2014-11-03 20:20:29 +07:00
parent 058176144e
commit ff1a08cbd5
22 changed files with 1987 additions and 630 deletions

View File

@@ -22,8 +22,12 @@ from django.utils.translation import ugettext as _
<%block name="requirejs">
require(["js/factories/library"], function(LibraryFactory) {
LibraryFactory(
${component_templates | n},
${json.dumps(xblock_info) | n}
${component_templates | n}, ${json.dumps(xblock_info) | n},
{
isUnitPage: false,
enable_paging: true,
page_size: 10
}
);
});
</%block>