dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35236
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18089: Dashboard, element validation.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 18089 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-01-21 19:04:17 +0100
message:
Dashboard, element validation.
modified:
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/table.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/plugin/table.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/table.js 2015-01-21 17:59:59 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/table.js 2015-01-21 18:03:50 +0000
@@ -3144,18 +3144,20 @@
obj = xResponse.sortableIdObjects[i];
el = Ext.get(obj.uuid);
- el.dom.layout = layout;
- el.dom.xLayout = xLayout;
- el.dom.response = response;
- el.dom.xResponse = xResponse;
- el.dom.metaDataId = obj.id;
- el.dom.onColumnHeaderMouseClick = web.events.onColumnHeaderMouseClick;
- el.dom.onColumnHeaderMouseOver = web.events.onColumnHeaderMouseOver;
- el.dom.onColumnHeaderMouseOut = web.events.onColumnHeaderMouseOut;
+ if (el.dom) {
+ el.dom.layout = layout;
+ el.dom.xLayout = xLayout;
+ el.dom.response = response;
+ el.dom.xResponse = xResponse;
+ el.dom.metaDataId = obj.id;
+ el.dom.onColumnHeaderMouseClick = web.events.onColumnHeaderMouseClick;
+ el.dom.onColumnHeaderMouseOver = web.events.onColumnHeaderMouseOver;
+ el.dom.onColumnHeaderMouseOut = web.events.onColumnHeaderMouseOut;
- el.dom.setAttribute('onclick', 'this.onColumnHeaderMouseClick(this.layout, this.xLayout, this.response, this.xResponse, this.metaDataId)');
- el.dom.setAttribute('onmouseover', 'this.onColumnHeaderMouseOver(this)');
- el.dom.setAttribute('onmouseout', 'this.onColumnHeaderMouseOut(this)');
+ el.dom.setAttribute('onclick', 'this.onColumnHeaderMouseClick(this.layout, this.xLayout, this.response, this.xResponse, this.metaDataId)');
+ el.dom.setAttribute('onmouseover', 'this.onColumnHeaderMouseOver(this)');
+ el.dom.setAttribute('onmouseout', 'this.onColumnHeaderMouseOut(this)');
+ }
}
}
};