瀏覽代碼

Red border on the textarea if the message body was left empty

Signed-off-by: emanuele <[email protected]>
emanuele 12 年之前
父節點
當前提交
ede68307c1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Themes/default/GenericControls.template.php

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

@@ -101,7 +101,9 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 				{
 					$("#' . $editor_id . '").data("sceditor").setTextMode();
 					$(".sceditor-button-source").hide();
-				}
+				}', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? '
+				$(".sceditor-container").find("textarea").each(function() {$(this).css({border: "1px solid red"})});
+				$(".sceditor-container").find("iframe").each(function() {$(this).css({border: "1px solid red"})});' : '', '
 			});';
 
 		// Now for backward compatibility let's collect few infos in the good ol' style