Skip to content
Permalink
Browse files

Make sure we have a toolbar in dialog

  • Loading branch information...
flack committed Aug 5, 2019
1 parent 7f8f6f2 commit 08e0b10eb9f7ca0394ff126494756d4e0c6030d3
Showing with 3 additions and 1 deletion.
  1. +2 −1 lib/org/openpsa/calendar/handler/calendar.php
  2. +1 −0 static/org.openpsa.calendar/calendar.js
@@ -107,7 +107,8 @@ private function get_calendar_options()
'start' => $this->_config->get('day_start_time') . ':00',
'end' => $this->_config->get('day_end_time') . ':00',
'dow' => [1, 2, 3, 4, 5]
]
],
'l10n' => ['cancel' => $this->_l10n_midcom->get('cancel')]
];
$prefix = '/org.openpsa.widgets/fullcalendar-3.2.0/';
@@ -141,6 +141,7 @@ var openpsa_calendar_widget = {
},
eventClick: function (calEvent, jsEvent) {
jsEvent.preventDefault();
$(jsEvent.target).data('dialog-cancel-label', settings.l10n.cancel);
create_dialog($(jsEvent.target), '', prefix + 'event/' + calEvent.id + '/');
},
selectable: true,

0 comments on commit 08e0b10

Please sign in to comment.
You can’t perform that action at this time.