Skip to content
Snippets Groups Projects
Commit 5337ed53 authored by Nicolò Caruso's avatar Nicolò Caruso
Browse files

Get corrected “businessHours” option

parent 64c27764
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ Drupal.behaviors.bat_event = {
},
selectAllow: function(selectInfo) {
if (Drupal.settings.batCalendar[key].selectAllowBusinessHours) {
var business_hours = $(this)[0].businessHours;
var business_hours = $(value[0]).fullCalendar('option', 'businessHours');
var start_day = selectInfo.start.day();
var end_day = selectInfo.end.clone().subtract(1, 'minute').day();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment