CJ пре 1 година
родитељ
комит
ecd1e7c5e5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      templates/blog.html

+ 1 - 1
templates/blog.html

@@ -254,7 +254,7 @@
         if ($(imgs[i]).attr('alt')) {
             let alt = $(imgs[i]).attr('alt')
             let src = $(imgs[i]).attr('src')
-            $(imgs[i]).parent().html(`<a data-pswp-width="${alt.split(',')[0]}" data-pswp-height="${alt.split(',')[1]}" href="${src}"><img width="${alt.split(',')[0]}" height="${alt.split(',')[0]}" data-magnify="gallery" data-src="${src}"  src="${src}"  data-href="${src}" "/></a>`)
+            $(imgs[i]).parent().html(`<a data-pswp-width="${alt.split(',')[0]}" data-pswp-height="${alt.split(',')[1]}" href="${src}"><img width="${alt.split(',')[0]}" height="${alt.split(',')[1]}" data-magnify="gallery" data-src="${src}"  src="${src}"  data-href="${src}" "/></a>`)
         }
     }
     var lightbox = new PhotoSwipeLightbox({