Skip to content

Commit

Permalink
Fixed highlight issues which came on in previous update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno Kurlin committed Oct 5, 2012
1 parent 5fc85f4 commit cbc881d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/resource/ResourceView.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,20 +226,7 @@ function ResourceView(element, calendar, viewName) {

indexCorrecter=0;
bodyCells.each(function(i, _cell) {
cell = $(_cell);
if(!weekends) {
i+=indexCorrecter;
weekendTester = addDays(cloneDate(t.visStart), i);
if(weekendTester.getDay() == 0) {
indexCorrecter++;
i++;
}
else if(weekendTester.getDay() == 6) {
indexCorrecter+=2;
i+=2;
}
}

cell = $(_cell);
date = indexDate(i);

if (+date == +today) {
Expand Down Expand Up @@ -580,7 +567,7 @@ function ResourceView(element, calendar, viewName) {


function indexDate(index) {
return _cellDate(index);
return _cellDate(index%colCnt);
}

function dayOfWeekCol(dayOfWeek) {
Expand Down

0 comments on commit cbc881d

Please sign in to comment.