mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Calendar context menu to add an event now works the same as a simple click; the event is only for that user
This commit is contained in:
parent
134572a0d9
commit
961a2a01da
@ -1423,7 +1423,12 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
target = target.parentNode;
|
target = target.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
context = extra = target.dataset;
|
context = extra = jQuery.extend({},target.dataset);
|
||||||
|
var owner = jQuery(target).closest('[data-owner]').get(0);
|
||||||
|
if(owner && owner.dataset.owner && owner.dataset.owner != this.state.owner)
|
||||||
|
{
|
||||||
|
extra.owner = owner.dataset.owner.split(',');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(context.date) extra.date = context.date;
|
if(context.date) extra.date = context.date;
|
||||||
if(context.app) extra.app = context.app;
|
if(context.app) extra.app = context.app;
|
||||||
|
@ -300,6 +300,7 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
|||||||
this.title
|
this.title
|
||||||
.attr("data-owner", _owner);
|
.attr("data-owner", _owner);
|
||||||
this.header.attr('data-owner',_owner);
|
this.header.attr('data-owner',_owner);
|
||||||
|
this.div.attr('data-owner',_owner);
|
||||||
|
|
||||||
// Simple comparison, both numbers
|
// Simple comparison, both numbers
|
||||||
if(_owner === this.options.owner) return;
|
if(_owner === this.options.owner) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user