diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-03-12 19:38:45 -0500 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-03-12 19:38:45 -0500 |
| commit | 8345857c372ee42a865b5a9dc9cbe53882b36df8 (patch) | |
| tree | 8f894d0aeb2c253ee8b10eb352c98a65c3fb7713 /static/js/pichat.js | |
| parent | 58c4f6858b83360286698a32e266fe9a33ed763a (diff) | |
| parent | cc2e415ee8bff7ee0ce9f7f6c8e7ef25cca3306a (diff) | |
Merge branch 'master' of /pichat/repo
Diffstat (limited to 'static/js/pichat.js')
| -rwxr-xr-x | static/js/pichat.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 132d67e..3775cfe 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -121,6 +121,10 @@ function submitMessage() { var content = $.trim($('#msgInput').val()); $('#msgInput').val(''); if (content == '') { return; } + if (content.length > 6666) { + alert("POST TOO LONG DUDE!"); + return; + } // this shouldn't just be client side :V PendingMessages[content] = true; var msg = { 'nick': Nick, 'content': content }; |
