dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18064
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7458: minor fix
------------------------------------------------------------
revno: 7458
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-06-29 18:40:58 +0300
message:
minor fix
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-06-29 15:31:11 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js 2012-06-29 15:40:58 +0000
@@ -284,10 +284,11 @@
this.select = function ( unitId )
{
var $linkTag = $( "#" + getTagId( unitId ) ).find( "a" ).eq( 0 );
- var selected = JSON.parse( sessionStorage[getTagId( "Selected" )] );
if ( $linkTag.hasClass( "selected" ) && ( unselectAllowed || rootUnselectAllowed ) )
{
+ var selected = JSON.parse( sessionStorage[getTagId( "Selected" )] );
+
if ( rootUnselectAllowed && !unselectAllowed && !multipleSelectionAllowed )
{
var roots = JSON.parse( localStorage[getTagId( "Roots" )] );
@@ -332,6 +333,8 @@
{
if ( multipleSelectionAllowed )
{
+ var selected = JSON.parse( sessionStorage[getTagId( "Selected" )] );
+
if ( selected )
{
selected = JSON.parse( selected );