[open-ils-commits] r839 - conifer/branches/rel_1_6_0/web/opac/skin/default/js (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 18 12:37:50 EDT 2010


Author: dbs
Date: 2010-03-18 12:37:46 -0400 (Thu, 18 Mar 2010)
New Revision: 839

Modified:
   conifer/branches/rel_1_6_0/web/opac/skin/default/js/result_common.js
Log:
Prevent low search results from suggesting a scope expansion to "Everywhere"


Modified: conifer/branches/rel_1_6_0/web/opac/skin/default/js/result_common.js
===================================================================
--- conifer/branches/rel_1_6_0/web/opac/skin/default/js/result_common.js	2010-03-18 16:35:26 UTC (rev 838)
+++ conifer/branches/rel_1_6_0/web/opac/skin/default/js/result_common.js	2010-03-18 16:37:46 UTC (rev 839)
@@ -284,7 +284,9 @@
 
 function resultExpandSearch() {
 	var top = findOrgDepth(globalOrgTree);
-	if(getDepth() == top) return;
+
+    /* We don't want to expand the scope to Everywhere in Conifer, that's just confusing */
+	if(getDepth() == top || getDepth() - 1 == top) return;
 	unHideMe($('low_hits_expand_range'));
 	var par = $('low_hits_expand_link').parentNode;
 	var template = par.removeChild($('low_hits_expand_link'));



More information about the open-ils-commits mailing list