Avoid some action errors in planner view - invite is not implemented there

This commit is contained in:
nathangray 2016-05-16 13:53:35 -06:00
parent a5f560fa0a
commit 877d00b2ee

View File

@ -273,7 +273,7 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
.append(this.title) .append(this.title)
.append(this.body); .append(this.body);
} }
if(!this._parent.options.readonly && !this.options.readonly) if(!this._parent.options.readonly && !this.options.readonly && this.div.droppable('instance'))
{ {
this.div this.div
// Let timegrid always get the drag // Let timegrid always get the drag
@ -866,7 +866,10 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
var action_links = this._get_action_links(actions); var action_links = this._get_action_links(actions);
action_links.push('egw_link_drag'); action_links.push('egw_link_drag');
action_links.push('egw_link_drop'); action_links.push('egw_link_drop');
if(this._actionObject.parent.getActionLink('invite'))
{
action_links.push('invite'); action_links.push('invite');
}
this._actionObject.updateActionLinks(action_links); this._actionObject.updateActionLinks(action_links);
}, },