Use getItemType() instead of getForm() in searchBarInit(). collab/dyrcona/lp788629_r20
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 17:15:09 +0000 (12:15 -0500)
commite83cb8c178feb703c35077e1bf7f84ad67a122a3
tree6ac6d2c886a92c5125d0bfc63ea397db7a48bf30
parent5d739f962130fbbba7a443aa43e33b0d434f8f13
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