dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42663
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21793: dashboard bugfix, make sure that requests include id, displayName
------------------------------------------------------------
revno: 21793
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2016-01-21 16:39:46 +0700
message:
dashboard bugfix, make sure that requests include id,displayName
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 2015-12-22 10:31:26 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2016-01-21 09:39:46 +0000
@@ -534,7 +534,7 @@
$( "#dashboard-" + dhis2.db.current() ).addClass( "currentDashboard" );
- $.getJSON( "../api/dashboards/" + id + "?fields=:all,dashboardItems[:all]&" + dhis2.util.cacheBust(), function( data )
+ $.getJSON( "../api/dashboards/" + id + "?fields=:all,dashboardItems[:all,reports[id,displayName],chart[id,displayName],map[id,displayName],reportTable[id,displayName]]&" + dhis2.util.cacheBust(), function( data )
{
$d = $( "#contentList" ).empty();
@@ -780,7 +780,7 @@
}
html +=
- "<li><a href='" + baseUrl + content.id + urlSuffix + "'>" + content.name + "</a>" +
+ "<li><a href='" + baseUrl + content.id + urlSuffix + "'>" + content.displayName + "</a>" +
"<a class='removeItemLink' href='javascript:dhis2.db.removeItemContent( \"" + itemId + "\", \"" + content.id + "\" )' title='" + i18n_remove + "'>" +
"<img src='../images/hide.png'></a></li>";
} );