trabajo-afectivo/app/assets/javascripts/knowledge_base_public/util.js

14 lines
347 B
JavaScript
Raw Permalink Normal View History

2019-06-04 03:40:48 +00:00
(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;
})()