fixed issue 412

This commit is contained in:
Adam Shaw 2010-07-03 18:08:55 -07:00
parent 6f4ab74340
commit 1729499290
2 changed files with 3 additions and 2 deletions

View file

@ -357,8 +357,8 @@ function Agenda(element, options, methods, viewName) {
function slotClick(ev) {
if (!view.option('selectable')) { // SelectionManager will worry about dayClick
var col = Math.floor((ev.pageX - bg.offset().left) / colWidth),
date = addDays(cloneDate(view.visStart), dit + dis*col),
var col = Math.min(colCnt-1, Math.floor((ev.pageX - bg.offset().left) / colWidth)),
date = addDays(cloneDate(view.visStart), col*dis+dit),
rowMatch = this.className.match(/fc-slot(\d+)/);
if (rowMatch) {
var mins = parseInt(rowMatch[1]) * options.slotMinutes,

View file

@ -21,6 +21,7 @@
},
editable: true,
weekMode: 'variable',
//isRTL: true,
viewDisplay: function(view) {
console.log('viewDisplay');