trabajo-afectivo/app/assets/javascripts/knowledge_base_public/util.js
2019-06-04 05:40:48 +02:00

13 lines
347 B
JavaScript

(function(){
function Util() { }
Util.generateIcon = function(iconName, iconset) {
if(!iconset) {
return '<svg class="icon icon-' + iconName + '"><use xlink:href="/assets/images/icons.svg#icon-' + iconName + '"></use></svg>'
}
return '<i data-font="' + iconset + '">&#x' + iconName + '</i>'
}
Zammad.Util = Util;
})()