Revision history [back]

click to hide/show revision 1
initial version

answered 2018-03-14 17:13:45 +0800

sarco gravatar image sarco flag of Spain

https://github.com/sarcow...

I am not able to recreate it anymore, thanks @hawk!

I am not able to recreate it anymore, thanks @hawk!

Let me attach the JS code:

 /**
 * for ZKCAL-70
 * based on 2.1.5
 */
zk.afterLoad('calendar', function() {
    var oldWidget = {};
    zk.override(calendar.CalendarsDefault.prototype, oldWidget, {
        getTimeIndex: function (date) {
            var timeslots = this._timeslots,
                timeslotTime = 60/timeslots,
                index = ((date.getHours() - this._bt) * timeslots) +
                            Math.floor(date.getMinutes()/timeslotTime);
            return index;
        },
    });

});
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More