aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-10-26 17:03:58 +0300
committerGravatar Vitaly Takmazov2015-10-26 17:03:58 +0300
commit9dfbc063653c729f7a74f1e02260073594fd66fa (patch)
treeac205fcd1b548919a380d4b490fb432e8c5e4328 /src/main/webapp/scripts.js
parent40b5be875667c718f8732fd7597203c3324c4b2e (diff)
allow empty tags
Diffstat (limited to 'src/main/webapp/scripts.js')
-rw-r--r--src/main/webapp/scripts.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/webapp/scripts.js b/src/main/webapp/scripts.js
index 50c8b8d0..8c3b46af 100644
--- a/src/main/webapp/scripts.js
+++ b/src/main/webapp/scripts.js
@@ -140,10 +140,7 @@ function unfoldPostForm() {
}
function onsubmitNewMessage() {
- if($('#newmessage .tags').val().length==0) {
- openDialog('<p class="dialogtxt">Пожалуйста, введите теги сообщения</p>');
- return false;
- } else if($('#newmessage textarea').val().length==0) {
+ if($('#newmessage textarea').val().length==0) {
openDialog('<p class="dialogtxt">Пожалуйста, введите текст сообщения</p>');
return false;
}