javascript - getting error when i set slotMinutes to 50 value in jquery fullcalendar -


i working jquery fullcalendar resource view. , want set slotminutes 50.

but when set not displaying events.

and giving error in function :

function horizontalpositioncache(getelement)

and line :

    t.left = function(i) {           return lefts[i] = lefts[i] === undefined ? e(i).position().left : lefts[i]; }; 

error : typeerror: e(...).position(...) null

can me please resolve ?

thanks in advance.

on file fullcalendar.min.js edit function function timeofdaycol(datetime)

before of return, put:

colcnt = math.floor( (24 * 60) / slotminutes);

the function stay like:

function timeofdaycol(datetime) {         var hours = datetime.gethours();         var minutes = datetime.getminutes();         var slotminutes = opt('slotminutes');         var slot, diff, mindiff, closestminute;          // round minutes closest minuteslot         (var = 0; <= 60 / slotminutes; i++) {             slot = * slotminutes;              diff = math.abs(slot - minutes);              if (diff <= mindiff || == 0) {                 mindiff = diff;                 closestminute = slot;             }              if (closestminute == 60) {                 hours++;                 closestminute = 0;             }         }         minutes = closestminute;            (var = 0; < colcnt; i++) {             if (indexdate(i).gethours() == hours && indexdate(i).getminutes() == minutes) {                 return i;             }         }          // not in range, return max         colcnt = math.floor( (24 * 60) / slotminutes);          return colcnt;     } 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -