fix error when no gallery image exist.

This commit is contained in:
chiu 2020-03-24 14:04:41 +08:00
parent f7ab0b4bfe
commit 71d9785a5f
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<script type="text/javascript">
var page_no = 2
var catch_flag = true
var max_page = <%= (@fiter_albums.length/@limit_count).ceil %>
var max_page = <%= (@fiter_albums.length/@limit_count).ceil rescue 1 %>
$('.bottomnav').ready(function(){
function load_html_func(){
$('#load_html').text("<%= t('gallery.wait_time') %>")