From 2ebbf89b0cc8b07a8338ab9d3118b31f6893d7f9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 16 Aug 2018 16:49:54 +0200 Subject: [PATCH] Set a placeholder icon if nothing found --- api/js/etemplate/et2_widget_taglist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_taglist.js b/api/js/etemplate/et2_widget_taglist.js index b3d5694be1..ab16d7f2d1 100644 --- a/api/js/etemplate/et2_widget_taglist.js +++ b/api/js/etemplate/et2_widget_taglist.js @@ -553,7 +553,7 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR var wrapper = jQuery('
').addClass('et2_taglist_tags_icon_wrapper'); jQuery('') .addClass('et2_taglist_tags_icon') - .css({"background-image": "url("+(item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon, item.app))+")"}) + .css({"background-image": "url("+(item.icon && item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon?item.icon:'no-image-shown', item.app))+")"}) .appendTo(wrapper); label.appendTo(wrapper); return wrapper;