ЗЫ нашел проверку в kb_post_body.tpl:
Код: Выделить всё
function checkForm() {
formErrors = false;
if (document.post.article_name.value.length < 2) {
formErrors = "{L_EMPTY_ARTICLE_NAME}\r";
}
if (document.post.article_desc.value.length < 2) {
formErrors = "{L_EMPTY_ARTICLE_DESC}\r";
}
if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}\r";
}
if (document.post.type_id.value=='select_one') {
formErrors = "{L_EMPTY_TYPE}\r";
}
if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(-1);
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}
Код: Выделить всё
if (document.post.article_desc.value.length < 2) {
formErrors = "{L_EMPTY_ARTICLE_DESC}\r";
}
