From 140ee80f0fe1d1d48f67612c1389ca7c2fc94f71 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 2 Sep 2018 09:38:33 -0600 Subject: changed admin featured image widget --- app/utils/static/image-loader.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/utils/static') 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(); } + } }); } -- cgit v1.2.3-70-g09d2