From 877d00b2eede31abfbd2f667db856e3e0253f13e Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 16 May 2016 13:53:35 -0600 Subject: [PATCH] Avoid some action errors in planner view - invite is not implemented there --- calendar/js/et2_widget_event.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index eee5ce51d7..0038cc5062 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -273,7 +273,7 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten .append(this.title) .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 // 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); action_links.push('egw_link_drag'); action_links.push('egw_link_drop'); - action_links.push('invite'); + if(this._actionObject.parent.getActionLink('invite')) + { + action_links.push('invite'); + } this._actionObject.updateActionLinks(action_links); },