13 lines
347 B
JavaScript
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;
|
|
})()
|