← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4283: changed !== undefined to != null in ouwt since firefox/chrome/ie/etc handles it differently

 

------------------------------------------------------------
revno: 4283
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-08-12 17:07:34 +0200
message:
  changed !== undefined to != null in ouwt since firefox/chrome/ie/etc handles it differently
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-12 13:23:47 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-12 15:07:34 +0000
@@ -330,7 +330,7 @@
 
         var selected = []
 
-        if ( sessionStorage[getTagId( "Selected" )] !== undefined )
+        if ( sessionStorage[getTagId( "Selected" )] != null )
         {
             selected = JSON.parse( sessionStorage[getTagId( "Selected" )] );
         }
@@ -472,7 +472,7 @@
         {
             while ( ouEl.parentId !== undefined )
             {
-                if ( localStorage[getTagId( ouEl.parentId )] !== undefined )
+                if ( localStorage[getTagId( ouEl.parentId )] != null )
                 {
                     array.push( ouEl.parentId );
                 }