dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21573
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10239: Re-set relative periods when to run aggregate favorite in tabular report.
------------------------------------------------------------
revno: 10239
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-03-15 13:47:49 +0700
message:
Re-set relative periods when to run aggregate favorite in tabular report.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/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-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2013-03-15 06:11:20 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2013-03-15 06:47:49 +0000
@@ -1280,12 +1280,19 @@
// Relative periods
+ Ext.Array.each(TR.cmp.params.relativeperiod.checkbox, function(item) {
+ if(item.getValue() && !item.hidden){
+ item.setValue(false);
+ }
+ });
for (var i = 0; i < f.relativePeriods.length; i++) {
TR.util.getCmp('checkbox[paramName="' + f.relativePeriods[i] + '"]').setValue(true);
}
// Fixed periods
+ TR.store.fixedperiod.selected.removeAll();
+
var periods = [];
for (var i = 0; i < f.fixedPeriods.length; i++) {
periods[i]={