فهرست منبع

smileys more button shown only if necessary

Signed-off-by: emanuele <[email protected]>
emanuele 12 سال پیش
والد
کامیت
34ef683c59
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      Themes/default/GenericControls.template.php

+ 7 - 1
Themes/default/GenericControls.template.php

@@ -87,11 +87,17 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 					},
 					createPermanentDropDown: function() {
 							var	emoticons	= $.extend({}, this.options.emoticons.dropdown);
+							var popup_exists = false;
 							content = $(\'<div />\').attr({class: "sceditor-insertemoticon"});
 							line = $(\'<div />\');
 
 							base = this;
-							if (typeof this.options.emoticons.popup !== "undefined")
+							for (smiley_popup in this.options.emoticons.popup)
+							{
+								popup_exists = true;
+								break;
+							}
+							if (popup_exists)
 							{
 								this.options.emoticons.more = this.options.emoticons.popup;
 								moreButton = $(\'<div />\').attr({class: "sceditor-more"}).text(', JavaScriptEscape('[' . $txt['more'] . ']'), ').click(function () {