summaryrefslogtreecommitdiff
path: root/app/utils/static/image-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils/static/image-loader.js')
-rw-r--r--app/utils/static/image-loader.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js
index 0139f10..f68da83 100644
--- a/app/utils/static/image-loader.js
+++ b/app/utils/static/image-loader.js
@@ -8,10 +8,10 @@ function add_images(){
if (featured_image) {
featured_image.querySelectorAll('li').forEach(function(element) {
var cur = element.dataset.imageid;
- var loop = element.dataset.loopcounter;
- console.log(loop);
- if (loop <= 100) {
+ var loop = Number(element.dataset.loopcounter);
if (cur != "") {
+ if (loop <= 100) {
+ console.log(loop);
var request = new XMLHttpRequest();
request.open('GET', '/photos/luximage/data/admin/tn/'+cur+'/', true);
request.onload = function() {