dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17460
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6955: local vn - Minor fixed.
------------------------------------------------------------
revno: 6955
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-05-16 14:25:34 +0700
message:
local vn - Minor fixed.
modified:
local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/javascript/export.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 'local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/javascript/export.js'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/javascript/export.js 2012-05-15 06:05:09 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/javascript/export.js 2012-05-16 07:25:34 +0000
@@ -113,8 +113,13 @@
addOptionById( 'selectedPeriodId', periods[i].id, periods[i].name );
}
}
-
- getRelativePeriods( getFieldValue( "selectedPeriodId" ) );
+
+ if ( currentReportTypeName == "P" ) {
+ getRelativePeriods ( jQuery('#selectedPeriodId option:first' ).val() );
+ }
+ else {
+ getRelativePeriods( getFieldValue( "selectedPeriodId" ) );
+ }
}
function getRelativePeriods( value )