This commit is contained in:
barisusakli
2015-02-03 16:13:09 -05:00
parent 28c57b6635
commit 255f50343c
7 changed files with 16 additions and 0 deletions

View File

@@ -406,6 +406,8 @@ define('composer', [
return composerAlert('[[error:invalid-title]]');
} else if (bodyEl.val().length < parseInt(config.minimumPostLength, 10)) {
return composerAlert('[[error:content-too-short, ' + config.minimumPostLength + ']]');
} else if (bodyEl.val().length > parseInt(config.maximumPostLength, 10)) {
return composerAlert('[[error:content-too-long, ' + config.maximumPostLength + ']]');
}
var composerData = {}, action;