do not change pages when there are no pages
parent
3ce599b201
commit
e58fee16be
|
@ -8,7 +8,7 @@
|
|||
np = 0;
|
||||
if(np >= page_count)
|
||||
np = page_count - 1;
|
||||
if(np == page)
|
||||
if(np == page or page_count == 0)
|
||||
return;
|
||||
setTimeout("update_scroll_box(" + np + ");", 800);
|
||||
new Effect.DropOut($('inner_#{@pagination_block}'));
|
||||
|
|
Reference in New Issue