dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24194
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11816: fix dashboard bug, canManage not set if there are no items on the dashboard
------------------------------------------------------------
revno: 11816
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
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;