быстрое добавление постов (ajax) git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@138 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2011-07-24 14:41:16 +00:00
parent 7124a63544
commit af29494fb4
4 changed files with 90 additions and 22 deletions

View file

@ -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) {