[open-ils-commits] r9077 - trunk/Open-ILS/web/opac/common/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 18 23:01:32 EDT 2008
Author: erickson
Date: 2008-03-18 22:27:16 -0400 (Tue, 18 Mar 2008)
New Revision: 9077
Modified:
trunk/Open-ILS/web/opac/common/js/init.js
Log:
fixed typo and repaired boolean test (to be safe) in opac init to enforce user depth preference setting
Modified: trunk/Open-ILS/web/opac/common/js/init.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/init.js 2008-03-19 02:27:13 UTC (rev 9076)
+++ trunk/Open-ILS/web/opac/common/js/init.js 2008-03-19 02:27:16 UTC (rev 9077)
@@ -36,11 +36,11 @@
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;
}
}
More information about the open-ils-commits
mailing list