Fix bug in selecting a page.

This commit is contained in:
Jeremy Goecks
2009-11-05 16:28:38 -05:00
parent 7a441130bb
commit 7c265e3409
+3 -3
View File
@@ -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.
<span>| Select:</span>
<select id="page-select" onchange="navigate_to_page()">
<select id="page-select" onchange="navigate_to_page(this)">
<option value=""></option>
%for page_index in range(1, num_pages + 1):
%if page_index == cur_page_num: