Browse Source

UI-1702: fixed the 'this week' filter on call logs so that it works on sundays too

4.3
Maxime Roux 11 years ago
parent
commit
b315a306b8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      submodules/callLogs/callLogs.js

+ 2
- 1
submodules/callLogs/callLogs.js View File

@ -250,7 +250,8 @@ define(function(require){
case 'thisWeek':
// First we need to know how many days separate today and monday.
// Since Sunday is 0 and Monday is 1, we do this little substraction to get the result.
var countDaysFromMonday = (from.getDay() - 1) % 7;
var day = from.getDay(),
countDaysFromMonday = (day||7) - 1;
from.setDate(from.getDate() - countDaysFromMonday);
break;


Loading…
Cancel
Save