projects
/
evergreen-equinox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2db099c
)
read format value from selector on page load in addition to onchange, since the brows...
author
berick
<berick@esilibrary.com>
Thu, 24 Mar 2011 20:21:52 +0000 (16:21 -0400)
committer
berick
<berick@esilibrary.com>
Thu, 24 Mar 2011 20:21:52 +0000 (16:21 -0400)
Open-ILS/web/opac/skin/kcls/js/search_bar.js
patch
|
blob
|
history
diff --git
a/Open-ILS/web/opac/skin/kcls/js/search_bar.js
b/Open-ILS/web/opac/skin/kcls/js/search_bar.js
index
61f136e
..
af36f2d
100644
(file)
--- a/
Open-ILS/web/opac/skin/kcls/js/search_bar.js
+++ b/
Open-ILS/web/opac/skin/kcls/js/search_bar.js
@@
-27,6
+27,14
@@
function searchBarInit() {
G.ui.searchbar.facets.value = val==''?'':"identifier|mattype["+val+"]";
};
+ setTimeout(
+ function() {
+ var format = getSelectorVal(G.ui.searchbar.form_selector);
+ if(format != '')
+ G.ui.searchbar.facets.value = "identifier|mattype["+format+"]";
+ },0
+ );
+
/* set up the selector objects, etc */
var txtVal = (getTerm() != null) ? getTerm() : "";
if(getStype()=="cn") txtVal = txtVal.replace(/identifier\|bibcn:/, "");