From e58fee16be69d334d6665fc81e5d465e05bd14ec Mon Sep 17 00:00:00 2001 From: Coleman Date: Sat, 11 Oct 2008 17:42:42 -0500 Subject: [PATCH] do not change pages when there are no pages --- app/views/home/_pagination_script.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/home/_pagination_script.html.haml b/app/views/home/_pagination_script.html.haml index 4f2fcea..7bdea09 100644 --- a/app/views/home/_pagination_script.html.haml +++ b/app/views/home/_pagination_script.html.haml @@ -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}'));