[open-ils-commits] r9075 -
branches/rel_1_2/Open-ILS/web/opac/common/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 18 23:00:33 EDT 2008
Author: erickson
Date: 2008-03-18 22:26:17 -0400 (Tue, 18 Mar 2008)
New Revision: 9075
Modified:
branches/rel_1_2/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: branches/rel_1_2/Open-ILS/web/opac/common/js/init.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/common/js/init.js 2008-03-19 02:25:26 UTC (rev 9074)
+++ branches/rel_1_2/Open-ILS/web/opac/common/js/init.js 2008-03-19 02:26:17 UTC (rev 9075)
@@ -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