diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/scripts3.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index c5fb472c..7651ab38 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -243,6 +243,20 @@ function openDialogLogin() { /******************************************************************************/ +function likeMessage(e,mid) { + $.ajax({ + url: 'http://juick.com/like?mid='+mid, + type: 'POST' + }).done(function() { + $(e).closest("article").append("<p>OK!</p>"); + }).fail(function() { + $(e).closest("article").append("<p>Ошибка</p>"); + }); + return false; +} + +/******************************************************************************/ + function setPopular(e,mid,popular) { $.ajax('http://api.juick.com/messages/set_popular?mid='+mid+'&popular='+popular+'&hash='+hash).done(function() { var a=$(e).closest("article"); |