mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-09-12 12:21:04 +08:00
fixed issue 412
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
},
|
||||
editable: true,
|
||||
weekMode: 'variable',
|
||||
//isRTL: true,
|
||||
|
||||
viewDisplay: function(view) {
|
||||
console.log('viewDisplay');
|
||||
|
||||
Reference in New Issue
Block a user