1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

More minor changes

git-svn-id: file:///svn/phpbb/trunk@3004 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-11-01 15:40:22 +00:00
parent ab669d0f04
commit ac0c0f5247
4 changed files with 17 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
<!-- INCLUDE overall_header.html -->
<script language="JavaScript" type="text/javascript">
<script language="javascript" type="text/javascript">
<!--
// Define the bbCode tags
@@ -22,30 +22,19 @@ a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";
function checkForm() {
formErrors = false;
function checkForm()
{
if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}
if (formErrors) {
alert(formErrors);
alert('{L_EMPTY_MESSAGE}');
return false;
} else {
bbstyle(-1);
//document.post.preview.disabled = true;
//document.post.submit.disabled = true;
//document.post.save.disabled = true;
//document.post.cancel.disabled = true;
return true;
}
}
//-->
</script>
<script language="JavaScript" src="templates/subSilver/editor.js"></script>
<script language="javascript" type="text/javascript" src="templates/subSilver/editor.js"></script>
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"><table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
@@ -74,7 +63,7 @@ function checkForm() {
<!-- IF S_DELETE_ALLOWED -->
<tr>
<td class="row1"><span class="gen"><b>{L_DELETE_POST}</b></span></td>
<td class="row2"><input type="checkbox" name="delete" /> {L_DELETE_WARN}</td>
<td class="row2"><input type="checkbox" name="delete" /> <span class="gensmall">[ {L_DELETE_WARN} ]</span></td>
</tr>
<!-- ENDIF -->
<!-- IF S_DISPLAY_USERNAME -->