mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
i thought i removed this ages ago... this only gives problems if you need to check for refresh, preview, attaching, poll editing, adding files, etc. Better handle error reporting within the code (we do not rely on JS code anyway).
git-svn-id: file:///svn/phpbb/trunk@8209 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e4b21e5618
commit
9c7e7905e0
2 changed files with 1 additions and 19 deletions
|
@ -32,24 +32,6 @@
|
|||
<!-- END custom_tags -->
|
||||
}
|
||||
|
||||
function checkForm()
|
||||
{
|
||||
if (document.getElementById(text_name).value.length < 2 && load_draft == false)
|
||||
{
|
||||
if (!upload)
|
||||
{
|
||||
alert('{LA_EMPTY_MESSAGE}');
|
||||
return false;
|
||||
}
|
||||
upload = false;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
|
||||
var show_panel = 'options-panel';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<form id="postform" method="post" action="{S_POST_ACTION}" onsubmit="return checkForm(this);"{S_FORM_ENCTYPE}>
|
||||
<form id="postform" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}>
|
||||
|
||||
<!-- IF S_DRAFT_LOADED -->
|
||||
<div class="panel">
|
||||
|
|
Loading…
Add table
Reference in a new issue