forked from 0x2620/oxjs
add more data to calendar demo
This commit is contained in:
parent
3d7607b78a
commit
8ed96c83ca
2 changed files with 201 additions and 9 deletions
|
|
@ -835,12 +835,11 @@ Ox.Calendar = function(options, self) {
|
|||
return 1;
|
||||
} else if (a.type != 'person' && b.type == 'person') {
|
||||
return -1;
|
||||
/*
|
||||
} else if (a.startTime < b.startTime || a.startTime > b.startTime) {
|
||||
return a.startTime - b.startTime;
|
||||
*/
|
||||
} else {
|
||||
///*
|
||||
} else if ((b.endTime - b.startTime) != (a.endTime - a.startTime)) {
|
||||
return (b.endTime - b.startTime) - (a.endTime - a.startTime);
|
||||
} else /*if (a.startTime < b.startTime || a.startTime > b.startTime)*/ {
|
||||
return a.startTime - b.startTime;
|
||||
}
|
||||
}).forEach(function(event, i) {
|
||||
var line = lineEvents.length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue