dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18267
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7638: Load the lastest period into the list in data entry form.
------------------------------------------------------------
revno: 7638
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
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];
}