Merge branch 'spidev' into 'master'
Zeiterfassung Update See merge request fronk/thetool!409
This commit is contained in:
@@ -248,6 +248,7 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
|||||||
var holidays = [];
|
var holidays = [];
|
||||||
var colorcount = 0;
|
var colorcount = 0;
|
||||||
var oldname = "";
|
var oldname = "";
|
||||||
|
var category;
|
||||||
$.each(json, function (index, value) {
|
$.each(json, function (index, value) {
|
||||||
if (oldname != value.user.user) {
|
if (oldname != value.user.user) {
|
||||||
colorcount++;
|
colorcount++;
|
||||||
@@ -256,14 +257,21 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
|
|||||||
}
|
}
|
||||||
oldname = value.user.user;
|
oldname = value.user.user;
|
||||||
}
|
}
|
||||||
|
if (value.ccategory.ccategory == "Sterbefall") {
|
||||||
|
console.log('cool');
|
||||||
|
category = "Sonderurlaub";
|
||||||
|
} else {
|
||||||
|
category = value.ccategory.ccategory;
|
||||||
|
}
|
||||||
|
|
||||||
if (value.hourday.hourday != '5') {
|
if (value.hourday.hourday != '5') {
|
||||||
holidays.push({
|
holidays.push({
|
||||||
id: cindex,
|
id: cindex,
|
||||||
backgroundColor: bgcolors[colorcount],
|
backgroundColor: bgcolors[colorcount],
|
||||||
start: value.cstart.cstart,
|
start: value.cstart.cstart,
|
||||||
end: value.cend.cend,
|
end: value.cend.cend,
|
||||||
title: value.ccategory.ccategory + " " + value.user.user,
|
title: category + " " + value.user.user,
|
||||||
description: value.ccategory.ccategory + " " + value.user.user
|
description: category + " " + value.user.user
|
||||||
});
|
});
|
||||||
cindex++;
|
cindex++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user