Calendar: Fix dnd reordering of owners

This commit is contained in:
nathan 2023-07-11 14:57:01 -06:00
parent 53022a39b4
commit fd79a175ce

View File

@ -965,12 +965,12 @@ export class CalendarApp extends EgwApp
let sortablejs = Sortable.create(sortable, { let sortablejs = Sortable.create(sortable, {
ghostClass: 'srotable_cal_wk_ph', ghostClass: 'srotable_cal_wk_ph',
draggable: state.view == 'day' ? '.calendar_calDayColHeader' : '.view_row', draggable: state.view == 'day' ? '.calendar_calDayColHeader' : '.view_row',
handle: state.view == 'day' ? '.calendar_calToday' : '.calendar_calGridHeader', handle: state.view == 'day' ? '.blue_title' : '.calendar_calGridHeader',
animation: 100, animation: 100,
filter: state.view == 'day' ? '.calendar_calTimeGridScroll' : '.calendar_calDayColHeader', filter: state.view == 'day' ? '.calendar_calTimeGridScroll' : '.calendar_calDayColHeader',
preventOnFilter: false, // Required for dnd fullday nonblocking preventOnFilter: false, // Required for dnd fullday nonblocking
dataIdAttr: 'data-owner', dataIdAttr: 'data-owner',
direction: state.view == 'day' ? 'horizental' : 'vertical', direction: state.view == 'day' ? 'horizontal' : 'vertical',
sort: state.owner.length > 1 && ( sort: state.owner.length > 1 && (
state.view == 'day' && state.owner.length < parseInt('' + egw.preference('day_consolidate', 'calendar')) || state.view == 'day' && state.owner.length < parseInt('' + egw.preference('day_consolidate', 'calendar')) ||
(state.view == 'week' || state.view == 'day4') && state.owner.length < parseInt('' + egw.preference('week_consolidate', 'calendar'))), // enable/disable sort (state.view == 'week' || state.view == 'day4') && state.owner.length < parseInt('' + egw.preference('week_consolidate', 'calendar'))), // enable/disable sort