dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21805
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10420: (GIS) Dashboard access.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 10420 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-03-25 13:54:06 +0100
message:
(GIS) Dashboard access.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.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-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-03-21 17:53:58 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-03-25 12:50:28 +0000
@@ -2133,13 +2133,13 @@
{
iconCls: 'gis-grid-row-icon-dashboard',
getClass: function(value, metaData, record) {
- return 'tooltip-favorite-dashboard' + (!record.data.access.update ? ' disabled' : '');
+ return 'tooltip-favorite-dashboard' + (!record.data.access.read ? ' disabled' : '');
},
handler: function(grid, rowIndex) {
var record = this.up('grid').store.getAt(rowIndex),
message;
- if (record.data.access.update) {
+ if (record.data.access.read) {
message = 'Add to dashboard?\n\n' + record.data.name;
if (confirm(message)) {