Merge pull request #244 from ma-zal/master

flowRender.js - Fix FontAwesome icon insert
This commit is contained in:
Knut Sveidqvist
2015-11-04 16:21:18 +01:00

View File

@@ -79,7 +79,7 @@ exports.addVertices = function (vert, g) {
if(conf.htmlLabels) { if(conf.htmlLabels) {
labelTypeStr = 'html'; labelTypeStr = 'html';
verticeText = verticeText.replace(/fa:fa[\w\-]+/g,function(s){ verticeText = verticeText.replace(/fa:fa[\w\-]+/g,function(s){
return '<i class="fa '+ s.substring(3)+'">'; return '<i class="fa '+ s.substring(3)+'"></i>';
}); });
} else { } else {