first round of commits for 1.4, agenda view

This commit is contained in:
Adam Shaw 2009-10-05 05:47:26 +00:00
parent 1cb53661fd
commit 8e0312a750
7 changed files with 921 additions and 931 deletions

View file

@ -116,10 +116,6 @@ function Grid(element, options, methods) {
rowCnt = r;
colCnt = c;
var month = view.start.getMonth(),
today = clearTime(new Date()),
s, i, j, d = cloneDate(view.visStart);
// update option-derived variables
tm = options.theme ? 'ui' : 'fc';
firstDay = options.firstDay;
@ -131,6 +127,10 @@ function Grid(element, options, methods) {
dit = 0;
}
var month = view.start.getMonth(),
today = clearTime(new Date()),
s, i, j, d = cloneDate(view.visStart);
if (!tbody) { // first time, build all cells from scratch
var table = $("<table/>").appendTo(element);
@ -247,12 +247,12 @@ function Grid(element, options, methods) {
};
function dayClick() {
function dayClick(ev) {
var date = addDays(
cloneDate(view.visStart),
parseInt(this.className.match(/fc\-day(\d+)/)[1])
);
view.trigger('dayClick', this, date);
view.trigger('dayClick', this, date, true, ev);
}