Use getItemType() instead of getForm() in searchBarInit(). collab/dyrcona/lp788629
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 2 Feb 2012 14:19:11 +0000 (09:19 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 2 Feb 2012 15:11:57 +0000 (10:11 -0500)
commit3149f486f70331a057b78515b9b3e61d586fe20b
tree5b1722c50b54c54458b0d44a333de560e9ae9fcc
parentef1211724dc9e6257024f9d39faa39e05ab5584a
Use getItemType() instead of getForm() in searchBarInit().

This seems to actually fix the problem with the item type limiter
being lost when going from advanced search to the results page.

Looks like the wrong method was being used to set the form_selector
value in search_bar.js. It was being set to the web form itself and
not to the value of the it (item type) parameter.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/opac/skin/default/js/search_bar.js