Fix broken priority icons in mail compose

This commit is contained in:
Hadi Nategh 2018-03-26 12:41:37 +02:00
parent 18dabbd7f5
commit 94519b0174

View File

@ -356,7 +356,7 @@ var et2_dropdown_button = (function(){ "use strict"; return et2_inputWidget.exte
if(item && options[key].icon)
{
// we supply a applicable class for item images
jQuery('a',item).prepend('<img class="et2_button_icon" src="' + egw.image(options[key].icon) +'"/>');
jQuery('a',item).prepend('<img class="et2_button_icon" src="' + (options[key].icon.match(/^(http|https|\/)/) ? options[key].icon : egw.image(options[key].icon)) +'"/>');
}
}
}