diff options
author | KillyMXI | 2017-07-17 16:06:57 +0300 |
---|---|---|
committer | KillyMXI | 2017-07-17 16:06:57 +0300 |
commit | 6d6dbcb55a6090920e6b056bcfc68297b8efea10 (patch) | |
tree | 22bf63da0310b360ec8c4cd73f1fecd31b6fd4c2 /juick-www/src/main | |
parent | fef044fc57d223d8923db9b68d2c74cbf20e77bf (diff) |
www: better confirmation message, localized.
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 357b1c30..c24448ff 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -37,6 +37,7 @@ const translations = { 'en': { 'message.inReplyTo': 'in reply to', 'message.reply': 'Reply', + 'message.likeThisMessage?': 'Recommend this message?', 'postForm.pleaseInputMessageText': 'Please input message text', //'postForm.upload': 'upload', 'comment.writeComment': 'Write comment...', @@ -53,6 +54,7 @@ const translations = { 'ru': { 'message.inReplyTo': 'в ответ на', 'message.reply': 'Ответить', + 'message.likeThisMessage?': 'Рекомендовать это сообщение?', 'postForm.pleaseInputMessageText': 'Пожалуйста, введите текст сообщения', 'postForm.upload': 'загрузить', 'comment.writeComment': 'Написать комментарий...', @@ -538,7 +540,7 @@ function resultMessage(str) { } function likeMessage(e, mid) { - if (confirm('Are you sure?')) { + if (confirm(i18n('message.likeThisMessage?'))) { fetch('//juick.com/like?mid=' + mid, { method: 'POST', credentials: 'same-origin' |