From 1cbf58f91bab176c54352427dfb96494e2b69db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Thu, 23 Dec 2021 21:05:23 +0800 Subject: [PATCH] fix error --- app/assets/javascripts/theater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index b396fe5..62b0bcc 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -4,7 +4,6 @@ $('.show-gallery .show-content.col-sm-2').ready(function(){ } }) window.GalleryTheater = function(){ - bindKeyHandlers(); var parent_divs = $('.gallery').parents('div'), parent_div_z_index = parent_divs.eq(parent_divs.length-1).css('z-index') parent_divs.eq(parent_divs.length-1).css('z-index','2000') @@ -192,6 +191,7 @@ window.GalleryTheater = function(){ gt.createTheater = function(link){ $('.gallery-img-desc').removeClass('active'); + bindKeyHandlers(); gt.stage.show(); $("body").addClass("gallery-mode-on"); gt.isTheaterInitialized = false;