no allowing sort direction on relevance sorts
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Feb 2006 22:10:23 +0000 (22:10 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Feb 2006 22:10:23 +0000 (22:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3226 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/advanced/advanced_wizard.xml

index 6424d89..e23810c 100644 (file)
                                <span>Sort results by </span>
                                <select id='advanced.wizard.sort_by' 
                                        onchange='
-                                       if(this.selectedIndex == 0) 
+                                       if(this.selectedIndex == 0) {
                                                $("advanced.wizard.sort_dir").disabled = true;
-                                       else $("advanced.wizard.sort_dir").disabled = false;'>
-                                       <option value=''>Relevance</option>
+                                               $("advanced.wizard.sort_dir").selectedIndex = 0;
+                                       } else $("advanced.wizard.sort_dir").disabled = false;'>
+                                       <option value='rel'>Relevance</option>
                                        <option value='title'>Title</option>
                                        <option value='author'>Author</option>
                                        <!--