Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
<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 %]; }}'
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.
*/