Fix link location in calendar events

This commit is contained in:
yflory 2022-12-21 13:34:01 +01:00
parent d5fefb5946
commit 4709b6740d
1 changed files with 9 additions and 6 deletions

View File

@ -2085,12 +2085,6 @@ APP.recurrenceRule = {
}, function () {
$del.click();
});
var $section = $el.find('.tui-full-calendar-section-button');
var ev = APP.editModalData;
var data = ev.schedule || {};
var id = data.id;
if (!id) { return; }
if (id.indexOf('|') === -1) { return; } // Original event ID doesn't contain |
if (APP.nextLocationUid) {
var uid = APP.nextLocationUid;
@ -2102,6 +2096,15 @@ APP.recurrenceRule = {
common.openUnsafeURL($a.attr('href'));
});
}
var $section = $el.find('.tui-full-calendar-section-button');
var ev = APP.editModalData;
var data = ev.schedule || {};
var id = data.id;
if (!id) { return; }
if (id.indexOf('|') === -1) { return; } // Original event ID doesn't contain |
// This is a recurring event, add button to stop recurrence now
var $b = $(h('button.btn.btn-default', [
h('i.fa.fa-times'),