Item13460: JQICON FontAwesome icons are not working.
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: JQueryPlugin
Branches: master
--
GeorgeClark - 16 Jun 2015
diff --git a/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm b/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm
index 24eb802..801e46e 100644
--- a/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm
+++ b/JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm
@@ -368,12 +368,13 @@ sub handleJQueryIcon {
$iconFormat = '<i class=\'$iconClass\' $iconStyle $iconTitle></i>';
$iconPath = '';
$iconClass = "foswikiIcon jqIcon fa $iconName";
+ createPlugin("fontawesome");
}
# default img based
else {
$iconFormat =
-'<img src=\'$iconPath\' class=\'$iconClass\' $iconStyle $iconAlt$iconTitle/>'
+'<img src=\'$iconPath\' class=\'$iconClass $iconName\' $iconStyle $iconAlt$iconTitle/>'
unless $iconFormat;
$iconPath =
Foswiki::Plugins::JQueryPlugin::Plugins::getIconUrlPath($iconName);
--
MichaelDaum - 16 Jun 2015