dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42347
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21655: Minor fix
------------------------------------------------------------
revno: 21655
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2016-01-08 10:08:28 +0700
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.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/dhis2/dhis2.period.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js 2016-01-07 11:18:47 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.period.js 2016-01-08 03:08:28 +0000
@@ -541,8 +541,6 @@
var periods = [];
var startDate = this.calendar.newDate(year, 1, 1);
- // startDate.add(-(startDate.dayOfWeek() - 1), 'd'); // rewind to start of week, might cross year boundary
-
var day = startDate.dayOfWeek();
if( day == 0 ) // Sunday (0), forward to Monday