← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12179: Minor

 

------------------------------------------------------------
revno: 12179
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-09-19 19:48:54 +0200
message:
  Minor
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-09-19 17:34:52 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-09-19 17:48:54 +0000
@@ -258,6 +258,7 @@
 			url: "../api/dashboards/" + dhis2.db.current,
 	    	success: function() {
 	    		$( "#manageDashboardForm" ).dialog( "destroy" );
+	    		dhis2.db.current = undefined;
 	    		dhis2.db.renderDashboardListLoadFirst();
 	    	}
 		} );
@@ -354,10 +355,10 @@
 	
 	$( "#dashboard-" + dhis2.db.current ).addClass( "currentDashboard" );
 	
-	$d = $( "#contentList" ).empty();
-	
 	$.getJSON( "../api/dashboards/" + id, function( data )
 	{
+        $d = $( "#contentList" ).empty();
+		
         updateSharing( data );
 
         if( undefined !== data.items )