From aee84611864822fa7da4f249acceda4779b0059b Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Wed, 30 Sep 2015 13:03:01 -0400 Subject: [PATCH] CRM- 16415 ang: handle crm-i class for fontawesome icons --- ang/crmUi.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ang/crmUi.js b/ang/crmUi.js index 300d745a3a..42179c689e 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -843,7 +843,12 @@ restrict: 'EA', scope: {}, link: function (scope, element, attrs) { - $(element).prepend(' '); + if (attrs.crmIcon.substring(0,3) == 'fa-') { + $(element).prepend(' '); + } + else { + $(element).prepend(' '); + } if ($(element).is('button')) { $(element).addClass('crm-button'); } -- 2.25.1