From badef6109832896b50864cc25ef20ddacbf9f142 Mon Sep 17 00:00:00 2001 From: Robby Date: Mon, 4 Apr 2016 02:14:03 +0200 Subject: [PATCH 1/2] textstyle: Fix event is not defined errors, preventing fontstyles from working. --- client/assets/plugins/textstyle.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/assets/plugins/textstyle.html b/client/assets/plugins/textstyle.html index 15a22a340..a1a97b3d3 100644 --- a/client/assets/plugins/textstyle.html +++ b/client/assets/plugins/textstyle.html @@ -198,17 +198,17 @@ // Changing styles... - $list.on('click', '.style-format-bold', function() { + $list.on('click', '.style-format-bold', function(event) { event.stopPropagation(); styles.bold = !styles.bold; updateStyles(); }); - $list.on('click', '.style-format-italic', function() { + $list.on('click', '.style-format-italic', function(event) { event.stopPropagation(); styles.italic = !styles.italic; updateStyles(); }); - $list.on('click', '.style-format-underline', function() { + $list.on('click', '.style-format-underline', function(event) { event.stopPropagation(); styles.underline = !styles.underline; updateStyles(); From f3315a34e7aa9673ce8b1eae46197b2be39bd248 Mon Sep 17 00:00:00 2001 From: Robby Date: Mon, 4 Apr 2016 02:27:17 +0200 Subject: [PATCH 2/2] textstyle: Remove unnecessary space. --- client/assets/plugins/textstyle.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/assets/plugins/textstyle.html b/client/assets/plugins/textstyle.html index a1a97b3d3..456883eb8 100644 --- a/client/assets/plugins/textstyle.html +++ b/client/assets/plugins/textstyle.html @@ -142,9 +142,9 @@ style_codes += '\x1F'; } - // Add the styles to the emssage + // Add the styles to the message if (style_codes && data.params[1]) { - data.params[1] = style_codes + ' ' + data.params[1]; + data.params[1] = style_codes + data.params[1]; } });