Set a placeholder icon if nothing found

This commit is contained in:
Hadi Nategh 2018-08-16 16:49:54 +02:00
parent bf151cff7b
commit 2ebbf89b0c

View File

@ -553,7 +553,7 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
var wrapper = jQuery('<div>').addClass('et2_taglist_tags_icon_wrapper');
jQuery('<span/>')
.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;