From 7c265e340950d90cbc5e1cdc76c78415e8e5d39b Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Thu, 5 Nov 2009 16:28:38 -0500 Subject: [PATCH] Fix bug in selecting a page. --- templates/history/grid.mako | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/history/grid.mako b/templates/history/grid.mako index 188697fd044..97d8f65bbbf 100644 --- a/templates/history/grid.mako +++ b/templates/history/grid.mako @@ -126,9 +126,9 @@ // // Initiate navigation when user selects a page to view. // - function navigate_to_page() + function navigate_to_page(page_select) { - page_num = $(this).val(); + page_num = $(page_select).val(); <% url_args = {"page" : "PAGE"} %> var url_base = "${url( url_args )}"; var url = url_base.replace("PAGE", page_num); @@ -360,7 +360,7 @@ %endif ## Go to page select box. | Select: - %for page_index in range(1, num_pages + 1): %if page_index == cur_page_num: