From 4603bee75a94eb2fe6f8f10cf7fc5945edd6194c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 Apr 2016 19:19:31 +0000 Subject: [PATCH] Only show invalid formatting if we allow free entries, this lets calendar fetch any unknown owners in favorites from the server instead of removing them as invalid. --- calendar/js/et2_widget_owner.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/calendar/js/et2_widget_owner.js b/calendar/js/et2_widget_owner.js index f4cf6e4e19..0c4ba46ab6 100644 --- a/calendar/js/et2_widget_owner.js +++ b/calendar/js/et2_widget_owner.js @@ -74,6 +74,21 @@ var et2_calendar_owner = (function(){ "use strict"; return et2_taglist_email.ext return true; }, + selectionRenderer: function(item) + { + if(this.options.allowFreeEntries) + { + return this._super.apply(this,arguments); + } + else + { + var label = jQuery('').text(item.label); + if (item.class) label.addClass(item.class); + if (typeof item.title != 'undefined') label.attr('title', item.title); + if (typeof item.data != 'undefined') label.attr('data', item.data); + return label; + } + }, getValue: function() { if(this.taglist == null) return null;