}
function autoSuggestInit() {
+ /* For the "style" argument to the constructor below, IE 8 hates it if
+ * we supply dojo.attr("search_box", "style") as the value, which worked
+ * nicely in Google Chrome and Firefox. Filtering the "font" key/value
+ * pair out of that object gets IE not to throw an error, but even then
+ * the result is oddly ugly borders. So for now we're sadly hardcoding
+ * style. */
var widg = new openils.widget.AutoSuggest(
{
"storeArgs": {
if (event.charOrCode == dojo.keys.ENTER)
searchBarSubmit();
},
- "style": dojo.attr("search_box", "style"),
+ "style": {"width": "260px"},
"value": ((getTerm() != null) ? getTerm() : "")
}, "search_box"
);