From: erickson Date: Wed, 19 Mar 2008 02:26:17 +0000 (+0000) Subject: fixed typo and repaired boolean test (to be safe) in opac init to enforce user depth... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=273c34a5cc31ccef2aefad44ac81c32e32636a99;p=Evergreen.git fixed typo and repaired boolean test (to be safe) in opac init to enforce user depth preference setting git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9075 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/init.js b/Open-ILS/web/opac/common/js/init.js index 96b2e72755..def2002249 100644 --- a/Open-ILS/web/opac/common/js/init.js +++ b/Open-ILS/web/opac/common/js/init.js @@ -36,11 +36,11 @@ function init() { var org = G.user.prefs[PREF_DEF_LOCATION]; var depth = G.user.prefs[PREF_DEF_DEPTH]; - if(!org) org = G.user.ws_ou(); - if(!depth) depth = findOrgDepth(org); + if(org == null) org = G.user.ws_ou(); + if(depth == null) depth = findOrgDepth(org); LOCATION = org; - DEPTH = DEPTH; + DEPTH = depth; } }