document on

Brightcells 6 年之前
父節點
當前提交
1047e670db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      page/templates/page/mini_preview2.html

+ 1 - 1
page/templates/page/mini_preview2.html

@@ -383,7 +383,7 @@
383 383
         }
384 384
 
385 385
         // Initializes and opens PhotoSwipe
386
-        $('#photos img').click(function () {
386
+        $(document).on('click', '#photos img', function(){
387 387
             $('#qrscan').hide();
388 388
 
389 389
             curIdx = parseInt($(this).attr('data-idx'));