dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27013
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13393: gis add fav to dashboard option removed
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 13393 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-12-23 09:34:01 +0100
message:
gis add fav to dashboard option removed
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-12-22 23:27:34 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-12-23 08:33:30 +0000
@@ -2706,7 +2706,7 @@
{
dataIndex: 'name',
sortable: false,
- width: windowCmpWidth - 108,
+ width: windowCmpWidth - 88,
renderer: function(value, metaData, record) {
var fn = function() {
var element = Ext.get(record.data.id);
@@ -2731,7 +2731,7 @@
{
xtype: 'actioncolumn',
sortable: false,
- width: 100,
+ width: 80,
items: [
{
iconCls: 'gis-grid-row-icon-edit',
@@ -2836,29 +2836,6 @@
}
},
{
- iconCls: 'gis-grid-row-icon-dashboard',
- getClass: function(value, metaData, record) {
- 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.read) {
- message = 'Add to dashboard?\n\n' + record.data.name;
-
- if (confirm(message)) {
- Ext.Ajax.request({
- url: gis.init.contextPath + gis.conf.finals.url.path_module + 'addMapViewToDashboard.action',
- params: {
- id: record.data.id
- }
- });
- }
- }
- }
- },
- {
iconCls: 'gis-grid-row-icon-delete',
getClass: function(value, metaData, record) {
return 'tooltip-favorite-delete' + (!record.data.access['delete'] ? ' disabled' : '');