Now works in Firefox
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 26 Jan 2012 19:37:58 +0000 (14:37 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 26 Jan 2012 19:37:58 +0000 (14:37 -0500)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js

index 8fbe3e3..6dcfcaa 100644 (file)
@@ -17,7 +17,7 @@
         <span class='search_box_wrapper'>
             <input
                 [%- IF use_autosuggest.enabled == "t" %]
-                dojoType="openils.widget.AutoSuggest" type_selector="qtype"
+                dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
                 submitter="this.textbox.form.submit();"
                 [%- IF use_autosuggest.value.search('opac_visible') %]
                 store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
index 7f013f0..c4c025d 100644 (file)
@@ -75,6 +75,9 @@ if (!dojo._hasResource["openils.widget.AutoSuggest"]) {
                 if (typeof this.submitter == "string")
                     this.submitter = dojo.hitch(this, this.submitter);
 
+                if (typeof this.type_selector == "string")
+                    this.type_selector = dojo.byId(this.type_selector);
+
                 /* Save the instantiator from needing to specify same thing
                  * twice, even though we need it and the store needs it too.
                  */