From df150ef060a127cd9bc626d5db543a946e2e3dda Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 10 Aug 2015 15:13:14 -0500
Subject: [PATCH] redactor: Fix fontcolor plugin

---
 js/redactor-plugins.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/js/redactor-plugins.js b/js/redactor-plugins.js
index a7a143a05..7ecef2bba 100644
--- a/js/redactor-plugins.js
+++ b/js/redactor-plugins.js
@@ -90,12 +90,11 @@ RedactorPlugins.fontcolor = function()
 			{
 				e.preventDefault();
                 var $this = $(e.target);
-				self.fontcolor.set($this.data('rule'), $this.attr('rel'));
+				self.fontcolor.set(rule, $this.attr('rel'));
 			};
             $dropdown.on('click', 'a.redactor.color-swatch', func);
 
-            var template = $('<a class="redactor color-swatch" href="#"></a>')
-                .data('rule', rule);
+            var template = $('<a class="redactor color-swatch" href="#"></a>');
 
 			for (var z = 0; z < len; z++)
 			{
-- 
GitLab