------------------------------------------------------------
revno: 7638
committer: Tran Chau <[email protected]>
branch nick: dhis2
timestamp: Thu 2012-07-19 15:05:48 +0700
message:
Load the lastest period into the list in data entry form.
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js 2012-07-02 19:27:19 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js 2012-07-19 08:05:48 +0000
@@ -41,7 +41,7 @@
for ( var j = 0; j < periods.length; j++ )
{
- if ( $.date( periods[j]['endDate'], dateFormat ).date().getTime() <= now )
+ if ( $.date( periods[j]['startDate'], dateFormat ).date().getTime() <= now )
{
array[i++] = periods[j];
}
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp