Tagged Assets: Support passing arguments

Pass LOAD_INITIAL_COUNT and LOAD_NEXT_COUNT

Also only show 'Load more' if LOAD_NEXT_COUNT is not set to 0
This commit is contained in:
2018-09-16 06:30:48 +02:00
parent b50a3e1fb3
commit a65d771bd6
2 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ script(src="{{ url_for('static_cloud', filename='assets/js/tagged_assets.min.js'
script.
$(function() {
$('.js-asset-list').loadTaggedAssets();
$('.js-asset-list').loadTaggedAssets(5, 3);
})
| {% endblock %}
| {% block body %}