diff options
Diffstat (limited to 'app/utils/static')
-rw-r--r-- | app/utils/static/image-loader.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index 2b0a281..0139f10 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -7,7 +7,10 @@ function add_images(){ if (featured_image) { featured_image.querySelectorAll('li').forEach(function(element) { - var cur = element.dataset.imageid + var cur = element.dataset.imageid; + var loop = element.dataset.loopcounter; + console.log(loop); + if (loop <= 100) { if (cur != "") { var request = new XMLHttpRequest(); request.open('GET', '/photos/luximage/data/admin/tn/'+cur+'/', true); @@ -29,6 +32,7 @@ function add_images(){ }; request.send(); } + } }); } |