diff options
author | Ugnich Anton | 2014-04-24 01:29:12 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-04-24 01:29:12 +0700 |
commit | 0b3c15851c0fbad3ee63cf0df298186a26d2a462 (patch) | |
tree | ef5a750def2821e8d56eae6563737e8773d12b50 /web | |
parent | 69453d196eb1dcc928c628c7ca32ba2f69ea22ea (diff) |
Recommendations
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"); |