diff --git a/Themes/default/scripts/jquery.sceditor.smf.js b/Themes/default/scripts/jquery.sceditor.smf.js
index f02dadc563..612b4d085b 100644
--- a/Themes/default/scripts/jquery.sceditor.smf.js
+++ b/Themes/default/scripts/jquery.sceditor.smf.js
@@ -56,6 +56,7 @@
return current_value;
},
appendEmoticon: function (code, emoticon, description) {
+ var base = this;
if (emoticon == '')
line.append($('
'));
else
@@ -95,7 +96,7 @@
var popup_exists = false;
content = $('