Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions source/javascripts/timesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@
this.data.push({start: beg, end: end, label: lbl, type: cat});
}
};

/*
extend tabel to inline all possible dates
and enable more events underneath each other
if there are more events in same dates
*/
Timesheet.prototype.extend = function() {
var yearGap = this.year.max - this.year.min + 1;
var yearSection = this.container.childNodes[0].getElementsByTagName("section")[0].offsetWidth;
var scaleCont = this.container.childNodes[0];
var dataCont = this.container.childNodes[1];

this.container.style.height = "auto";
this.container.style.overflow = "auto";
scaleCont.style.width = yearGap * yearSection;
dataCont.style.overflow = "visible";
}

/**
* Timesheet Bubble
Expand Down