From: erickson Date: Mon, 14 Mar 2011 16:34:27 +0000 (+0000) Subject: until futher investigation, roll back the changes of == to ===, since it was causing... X-Git-Tag: kcls-grey-screen-prod1^2 X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=0409488fc4a5c7969e60bb6daa44bba1e14b2274 until futher investigation, roll back the changes of == to ===, since it was causing unexpected changes in behavior. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19736 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js index f621fab..8a1000c 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js +++ b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js @@ -46,7 +46,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ }; fieldmapper.aou.LoadOrg = function (id, slim_ok) { - if (slim_ok === null) slim_ok = fieldmapper.aou.slim_ok; + if (slim_ok == null) slim_ok = fieldmapper.aou.slim_ok; var slim_o = fieldmapper.aou.OrgCache[id]; if (slim_o && (slim_ok || slim_o.loaded)) @@ -80,7 +80,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ for (var i in fieldmapper.aou.OrgCache) { var x = fieldmapper.aou.OrgCache[i].org; - if (x.parent_ou() === null || x.parent_ou() === '') { + if (x.parent_ou() == null || x.parent_ou() == '') { fieldmapper.aou.globalOrgTree = x; continue; } @@ -135,7 +135,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ fieldmapper.aou.findOrgDepth = fieldmapper.aou.prototype.findOrgDepth; fieldmapper.aout.findOrgTypeFromDepth = function (depth) { - if( depth === null ) return null; + if( depth == null ) return null; fieldmapper.aout.LoadOrgTypes(); for( var i in fieldmapper.aout.OrgTypeCache ) { var t = fieldmapper.aout.OrgTypeCache[i].type; @@ -145,7 +145,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ }; fieldmapper.aou.findOrgUnitSN = function (sn, slim_ok) { - if (slim_ok === null) slim_ok = fieldmapper.aou.slim_ok; + if (slim_ok == null) slim_ok = fieldmapper.aou.slim_ok; var org = fieldmapper.aou.OrgCacheSN[sn]; if (!org) { for (var i in fieldmapper.aou.OrgCache) {