return depth;
}
+function getSearchDepth() {
+ org = _ds.options[_ds.selectedIndex].value
+ newSearchDepth = findOrgDepth(org);
+ return newSearchDepth;
+}
+
function depthSelectorChanged() {
if(!_ds) return;
_newlocation = _ds.options[_ds.selectedIndex].value;
- newSearchDepth = findOrgDepth(_newlocation);
+ newSearchDepth = getSearchDepth();
}
var chooseAnotherNode;
var facet_text = isFrontPage ? '' : G.ui.searchbar.facets.value;
clearSearchParams();
if(!text || text == "" || text == "Search Keyword") return;
- var d = (newSearchDepth != null) ? newSearchDepth : depthSelGetDepth();
+ var d = (newSearchDepth != null) ? newSearchDepth : getSearchDepth();
//var d = getDepth();
if(isNaN(d)) d = 0;
var args = {};