Browse Source

[SCEditor] Fixed the attempt to have multiple lines of smileys

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 13 years ago
parent
commit
a1eb75e1e2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Themes/default/scripts/jquery.sceditor.js

+ 3 - 1
Themes/default/scripts/jquery.sceditor.js

@@ -445,7 +445,7 @@
 				emoticon;
 
 			$.each(emoticons, function (key, url) {
-				if (key == '|')
+				if (key == '')
 					emoticon = document.createElement('br');
 				else
 				{
@@ -789,6 +789,8 @@
 			var emoticons = $.extend({}, base.options.emoticons.more, base.options.emoticons.dropdown, base.options.emoticons.hidden);
 
 			$.each(emoticons, function (key, url) {
+				if (key == '')
+					return;
 				// escape the key before using it as a regex
 				// and append the regex to only find emoticons outside
 				// of HTML tags