Tagged Assets: Initial 8, load 8 more
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
*/
|
*/
|
||||||
(function($) {
|
(function($) {
|
||||||
/* How many nodes to load initially, and when clicked on the 'Load Next' link. */
|
/* How many nodes to load initially, and when clicked on the 'Load Next' link. */
|
||||||
const LOAD_INITIAL_COUNT = 5;
|
const LOAD_INITIAL_COUNT = 8;
|
||||||
const LOAD_NEXT_COUNT = 3;
|
const LOAD_NEXT_COUNT = 8;
|
||||||
|
|
||||||
/* Renders a node as an asset card, returns a jQuery object. */
|
/* Renders a node as an asset card, returns a jQuery object. */
|
||||||
function renderAsset(node) {
|
function renderAsset(node) {
|
||||||
|
@@ -23,7 +23,7 @@ script(src="{{ url_for('static_cloud', filename='assets/js/tagged_assets.min.js'
|
|||||||
|
|
||||||
script.
|
script.
|
||||||
$(function() {
|
$(function() {
|
||||||
$('.js-asset-list').loadTaggedAssets(4, 4);
|
$('.js-asset-list').loadTaggedAssets(8, 8);
|
||||||
});
|
});
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
|
Reference in New Issue
Block a user