Browse Source

Removed a bit of useless things from template + fixed a problem of height of the textarea

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
e4e0dd0772
2 changed files with 2 additions and 18 deletions
  1. 2 7
      Themes/default/GenericControls.template.php
  2. 0 11
      Themes/default/Post.template.php

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

@@ -19,12 +19,7 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 
 
 	echo '
 	echo '
 		<div>
 		<div>
-			<div style="width: 98.8%;">
-				<div>
-					<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
-				</div>
-				<div id="', $editor_id, '_resizer" class="richedit_resize"></div>
-			</div>
+			<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>
 		</div>
 		</div>
 		<input type="hidden" name="', $editor_id, '_mode" id="', $editor_id, '_mode" value="0" />
 		<input type="hidden" name="', $editor_id, '_mode" id="', $editor_id, '_mode" value="0" />
 		<script type="text/javascript"><!-- // --><![CDATA[
 		<script type="text/javascript"><!-- // --><![CDATA[
@@ -304,7 +299,7 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 		echo '
 		echo '
 				})
 				})
 				$("#', $editor_id, '").data("sceditor").createPermanentDropDown();
 				$("#', $editor_id, '").data("sceditor").createPermanentDropDown();
-				$(".sceditor-container").width("100%");
+				$(".sceditor-container").width("100%").height("100%");
 			});
 			});
 			// ]]></script>';
 			// ]]></script>';
 }
 }

+ 0 - 11
Themes/default/Post.template.php

@@ -345,17 +345,6 @@ function template_main()
 	}
 	}
 
 
 	// Show the actual posting area...
 	// Show the actual posting area...
-	if ($context['show_bbc'])
-	{
-		echo '
-					<div id="bbcBox_message"></div>';
-	}
-
-	// What about smileys?
-	if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup']))
-		echo '
-					<div id="smileyBox_message"></div>';
-
 	echo '
 	echo '
 					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
 					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');