fix error

This commit is contained in:
邱博亞 2021-12-23 21:05:23 +08:00
parent 91ee90befe
commit 1cbf58f91b
1 changed files with 1 additions and 1 deletions

View File

@ -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;