mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-30 11:39:25 -07:00
r138
быстрое добавление постов (ajax) git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@138 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
7124a63544
commit
af29494fb4
4 changed files with 90 additions and 22 deletions
|
@ -295,19 +295,6 @@ BBCode.prototype = {
|
|||
|
||||
}
|
||||
|
||||
// Called before form submitting.
|
||||
function checkForm(form) {
|
||||
var formErrors = false;
|
||||
if (form.message.value.length < 2) {
|
||||
formErrors = "Please enter the message.";
|
||||
}
|
||||
if (formErrors) {
|
||||
setTimeout(function() { alert(formErrors) }, 100);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Emulation of innerText for Mozilla.
|
||||
if (window.HTMLElement && window.HTMLElement.prototype.__defineSetter__) {
|
||||
HTMLElement.prototype.__defineSetter__("innerText", function (sText) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue