addressed existing onchange handlers
authorsenator <lebbeous@esilibrary.com>
Thu, 3 Feb 2011 18:37:22 +0000 (13:37 -0500)
committersenator <lebbeous@esilibrary.com>
Thu, 3 Feb 2011 18:37:22 +0000 (13:37 -0500)
Open-ILS/web/opac/skin/kcls-wire/js/misc.js
Open-ILS/web/templates/default/kcls-wire/parts/advanced/search.tt2
Open-ILS/web/templates/default/kcls-wire/results.tt2

index 0f3bf81..3e53964 100644 (file)
@@ -76,3 +76,22 @@ function swapTabs(el) {
         }
     }
 }
+
+function sortHolds() {
+    alert("FIXME disconnected");
+    /* XXX TODO There was a method for sorting loaded holds in the DOM
+     * without reloading the page, but it was reliant on fieldmapper
+     * and some stock dojo libraries.  Could be reimplemented without
+     * deps if deemed worth it.
+     */
+}
+
+function showDetailedResults(/* Boolean */ detailed) {
+    alert("FIXME disconnected");
+    /* XXX TODO this stands in for an old onchange handler that toggled
+     * between simple and detailed results in the rresults page.
+     * Don't know if we want to keep this around or not (I'm guessing not,
+     * and that we'll do this with two different server-side pages now,
+     * but leaving this stub here for now).
+     */
+}
index 2083e8e..3808123 100644 (file)
                             <span>&advanced.filter.pubyear;</span>
                         </td>
                         <td align='left'>
-                            <select id='adv_global_pub_date_type' onchange='
+                            <!-- XXX TODO the following select used to have this
+                                onchange handler:
                                 if($("adv_global_pub_date_type").selectedIndex == 3)
                                     unHideMe($("adv_global_pub_date_2_span"));
                                 else
-                                    hideMe($("adv_global_pub_date_2_span"));'>
+                                    hideMe($("adv_global_pub_date_2_span"));
+
+                                So do we need equiv functionality or no?
+                                -->
+                            <select id='adv_global_pub_date_type'>
                                     <option value='equals' selected='selected'>
                                         &advanced.filter.pubyear.equals;
                                     </option>
index 8d8c286..2e2811b 100644 (file)
@@ -36,7 +36,7 @@
                 <div class="results_header_div"></div>
                 <div class="results_header_lbl">View</div>
                 <select class="results_header_sel" style="width:88px;"
-                    onchange="this.selectedIndex?showDetailedInfo(true):showDetailedInfo(false);">
+                    onchange="showDetailedResults(Boolean(this.selectedIndex));">
                     <option>Simple</option>
                     <option>Detailed</option>
                 </select>