mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:41 +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
28c4159788
commit
4cf38c6ea6
@ -1421,7 +1421,12 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
||||
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.app) extra.app = context.app;
|
||||
|
@ -300,6 +300,7 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
this.title
|
||||
.attr("data-owner", _owner);
|
||||
this.header.attr('data-owner',_owner);
|
||||
this.div.attr('data-owner',_owner);
|
||||
|
||||
// Simple comparison, both numbers
|
||||
if(_owner === this.options.owner) return;
|
||||
|
Loading…
Reference in New Issue
Block a user