This commit is contained in:
Baris Usakli
2013-07-17 10:45:16 -04:00
parent 582cd2f011
commit 8d21d4f998
3 changed files with 47 additions and 0 deletions

View File

@@ -201,6 +201,16 @@ define(['taskbar'], function(taskbar) {
});
}
if (bodyEl.value.length <= 9) {
return app.alert({
type: 'error',
timeout: 5000,
title: 'Content too short',
message: "Please enter a longer post.",
alert_id: 'post_error'
});
}
// Still here? Let's post.
if (parseInt(postData.cid) > 0) {
socket.emit('api:topics.post', {