mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar - Fix changing order (sorting) of users day view
This commit is contained in:
parent
c65c081585
commit
46c4de0305
@ -555,7 +555,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
||||
if(!sortable.sortable('instance'))
|
||||
{
|
||||
sortable.sortable({
|
||||
cancel: "#divAppboxHeader, .calendar_calWeekNavHeader, .calendar_calDayColHeader, .calendar_plannerHeader",
|
||||
cancel: "#divAppboxHeader, .calendar_calWeekNavHeader, .calendar_plannerHeader",
|
||||
handle: '.calendar_calGridHeader',
|
||||
//placeholder: "srotable_cal_wk_ph",
|
||||
axis:"y",
|
||||
@ -601,7 +601,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
||||
// If in day view, the days need to be re-ordered, avoiding
|
||||
// the current sort order
|
||||
app.classes.calendar.views.day.etemplates[0].widgetContainer.iterateOver(function(widget) {
|
||||
var idx = sortedArr.indexOf(widget.options.owner);
|
||||
var idx = sortedArr.indexOf(widget.options.owner.toString());
|
||||
// Move the event holding div
|
||||
widget.set_left((parseInt(widget.options.width) * idx) + 'px');
|
||||
// Re-order the children, or it won't stay
|
||||
|
@ -580,10 +580,13 @@ var et2_calendar_view = (function(){ "use strict"; return et2_valueWidget.extend
|
||||
this.drag_create.parent = null;
|
||||
if(this.drag_create.event)
|
||||
{
|
||||
if(this.drag_create.event.destroy)
|
||||
try
|
||||
{
|
||||
this.drag_create.event.destroy();
|
||||
}
|
||||
if(this.drag_create.event.destroy)
|
||||
{
|
||||
this.drag_create.event.destroy();
|
||||
}
|
||||
} catch(e) {}
|
||||
this.drag_create.event = null;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user