← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9722: fixed ouwt issues with partial loading

 

------------------------------------------------------------
revno: 9722
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-02-05 15:35:12 +0700
message:
  fixed ouwt issues with partial loading
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	2012-11-12 10:22:34 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2013-02-05 08:35:12 +0000
@@ -104,9 +104,9 @@
 
             organisationUnits = JSON.parse( localStorage["organisationUnits"] );
 
-            if ( sessionStorage["organisationUnits"] !== undefined )
+            if ( sessionStorage['organisationUnits'] !== undefined )
             {
-                $.extend(organisationUnits, JSON.parse( sessionStorage["organisationUnits"] ))
+                $.extend( organisationUnits, JSON.parse( sessionStorage["organisationUnits"] ) );
             }
 
             selection.sync();
@@ -436,6 +436,11 @@
                 children = organisationUnits[selected].c;
             }
 
+            if ( sessionStorage['organisationUnits'] !== undefined )
+            {
+                $.extend( organisationUnits, JSON.parse( sessionStorage["organisationUnits"] ) );
+            }
+
             var name = organisationUnits[selected].n;
             ids.push( +selected );
             names.push( name );