From 85884319622a8d210f28929937ecb29e8780aa4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 11 Mar 2023 11:38:23 +0800 Subject: [PATCH] fix error --- app/assets/javascripts/theater.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 43a7ab3..64dc847 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -380,6 +380,8 @@ window.GalleryTheater = function() { setMainPic("prev", true); } else if (old_index < index) { setMainPic("next", true); + }else{ + setMainPic(); } return false; })