Open lloyrdmart opened 6 years ago
I've made own workaround, not so pretty, but works: modyfy template day.html, add:
before this line:
in calendar: onAfterViewLoad: function(view) { $(\'.page-header h3\').text(this.getTitle()); $(\'.btn-group button\').removeClass(\'active\'); $(\'button[data-calendar-view="\' + view + \'"]\').addClass(\'active\'); //------------------------------------------------------------------------------- $(\'#cal-day-box #cal-day-panel #cal-day-panel-hour .cal-day-hour .row-fluid.cal-day-hour-part\').unbind(\'click\'); $(\'#cal-day-box #cal-day-panel #cal-day-panel-hour .cal-day-hour .row-fluid.cal-day-hour-part\').click( function() { //When click on hour in the day view var date = $(this).children(\'.dzien\').html(); var time = $(this).children(\'.span1\').children(\'b\').html(); NewEvent(date, time); }); },
How can i get the date that was clicked? I am new to the web dev world. Please teach me