mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Calendar: Fix dnd reordering of owners
This commit is contained in:
parent
53022a39b4
commit
fd79a175ce
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user