From: Bill Erickson Date: Fri, 2 Sep 2011 14:48:46 +0000 (-0400) Subject: TPac: Submit search on sort/limit change X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9320c6451c38908fbe19d2565bc1c3374164a613;p=contrib%2FConifer.git TPac: Submit search on sort/limit change By popular demand, when the user changes the search sort or limit-to-available options, the form is immediately resubmitted via JavaScript. Fails gracefully in the absence of JS. Minor JS cleanup. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/opac/parts/filtersort.tt2 b/Open-ILS/src/templates/opac/parts/filtersort.tt2 index 428626ce99..664be17fc3 100644 --- a/Open-ILS/src/templates/opac/parts/filtersort.tt2 +++ b/Open-ILS/src/templates/opac/parts/filtersort.tt2 @@ -1,4 +1,5 @@ - diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2 index 803a0704b6..35eb88324c 100644 --- a/Open-ILS/src/templates/opac/results.tt2 +++ b/Open-ILS/src/templates/opac/results.tt2 @@ -46,7 +46,7 @@ [% END %]
[% l('Sort by') %]
- [% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') %] + [% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') submit_on_change=1 %]