From: dbs Date: Thu, 18 Mar 2010 16:37:46 +0000 (+0000) Subject: Prevent low search results from suggesting a scope expansion to "Everywhere" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6d38a638f5c10aa6ee315d95aa31896e21909eaf;p=contrib%2FConifer.git Prevent low search results from suggesting a scope expansion to "Everywhere" git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@839 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/web/opac/skin/default/js/result_common.js b/web/opac/skin/default/js/result_common.js index 4edf3884c7..ebbe15a9a5 100644 --- a/web/opac/skin/default/js/result_common.js +++ b/web/opac/skin/default/js/result_common.js @@ -284,7 +284,9 @@ function resultZeroHits() { 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'));