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:
nathangray 2016-08-18 15:33:24 -06:00
parent 28c4159788
commit 4cf38c6ea6
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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;