| Issue 1991: | We can highlight th if there more then 2 more event i got salution for that | |
| 1 person starred this issue and may be notified of changes. | Back to list |
# You must follow these instructions when entering an issue:
#
if (view.name.toString() == 'resourceMonth') {
var one_day = 1000 * 60 * 60 * 24;
var _Diff = Math.ceil((event.start.getTime() - view.visStart.getTime()) / (one_day));
// var _Diffend = Math.ceil((event.end.getTime() - view.visStart.getTime()) / (one_day));
// alert(event.start.getTime().toString());
// alert(view.visStart.getTime().toString());
var datenewbtnserach = event.start;
var dnew = datenewbtnserach.getDate();
myE.push(_Diff);
// myE.push(_Diffend);
var myArr = myE;
var newArr = myArr;
var h, i, j;
var U = [];
var Du = [];
c = [];
var count = 0;
b = {};
// var dayclass = ".fc-day" + _Diff;
// $(dayclass).addclass('holiday-color');
//alert($(_r).attr('class'));
for (var i in myE) {
if (myE.length > 2) {
for (h = 0; h < myArr.length; h++) {
var curItem = myArr[h];
var foundCount = 0;
// search array for item
for (i = 0; i < myArr.length; i++) {
if (myArr[i] == myArr[h]) {
foundCount++;
if (foundCount > 1) {
var difne = parseInt(myArr[h]);
var newd = difne + 1;
if (dnew == _Diff) {
var th = $('thead th:eq(' + difne.toString() + ')');
th.addClass('holiday-color');
}
else {
var th = $('thead th:eq(' + newd.toString() + ')');
th.addClass('holiday-color');
}
// myArr.splice(i, 1);
// myE.splice(i, 1);
// i--;
}
}
}
if (foundCount > 1) {
// remove repeated item from new array
for (j = 0; j < myArr.length; j++) {
if (myArr[j] == curItem) {
myArr.splice(j, 1);
myE.splice(j, 1);
U.push(myArr[j]); //not use
j--;
// myArr.splice(j, 1);
// j--;
}
else {
Du.push(curItem); //not use
}
}
}
}
}
}
}
else {
myE.length = 0;
}
Sep 7, 2013
#1
swapnily...@gmail.com
Sep 13, 2013
(No comment was entered for this change.)
Status:
Invalid
|
|
| ► Sign in to add a comment |