Consider app name when trying to fetch icon for taglist

This commit is contained in:
Hadi Nategh 2018-06-22 16:00:38 +02:00
parent 2080b4043c
commit 6aec99eab1

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'); var wrapper = jQuery('<div>').addClass('et2_taglist_tags_icon_wrapper');
jQuery('<span/>') jQuery('<span/>')
.addClass('et2_taglist_tags_icon') .addClass('et2_taglist_tags_icon')
.css({"background-image": "url("+(item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon))+")"}) .css({"background-image": "url("+(item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon, item.app))+")"})
.appendTo(wrapper); .appendTo(wrapper);
label.appendTo(wrapper); label.appendTo(wrapper);
return wrapper; return wrapper;
@ -1239,7 +1239,7 @@ var et2_taglist_email = (function(){ "use strict"; return et2_taglist.extend(
var wrapper = jQuery('<div>').addClass('et2_taglist_tags_icon_wrapper'); var wrapper = jQuery('<div>').addClass('et2_taglist_tags_icon_wrapper');
jQuery('<span/>') jQuery('<span/>')
.addClass('et2_taglist_tags_icon') .addClass('et2_taglist_tags_icon')
.css({"background-image": "url("+(item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon))+")"}) .css({"background-image": "url("+(item.icon.match(/^(http|https|\/)/) ? item.icon : egw.image(item.icon, item.app))+")"})
.appendTo(wrapper); .appendTo(wrapper);
label.appendTo(wrapper); label.appendTo(wrapper);
return wrapper; return wrapper;