------------------------------------------------------------
revno: 11816
committer: Morten Olav Hansen <[email protected]>
branch nick: dhis2
timestamp: Tue 2013-08-27 12:18:43 +0200
message:
  fix dashboard bug, canManage not set if there are no items on the dashboard
modified:
  
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.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-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-08-23 16:37:06 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-08-27 10:18:43 +0000
@@ -354,10 +354,10 @@
 	
 	$.getJSON( "../api/dashboards/" + id, function( data )
 	{
-		if ( undefined !== data.items )
-		{
-            updateSharing( data );
+        updateSharing( data );
 
+        if( undefined !== data.items )
+        {
 			$.each( data.items, function( index, item )
 			{
 				var position = index - 1;

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to