aboutsummaryrefslogtreecommitdiff
path: root/web/scripts3.js
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-04-24 01:29:12 +0700
committerGravatar Ugnich Anton2014-04-24 01:29:12 +0700
commit0b3c15851c0fbad3ee63cf0df298186a26d2a462 (patch)
treeef5a750def2821e8d56eae6563737e8773d12b50 /web/scripts3.js
parent69453d196eb1dcc928c628c7ca32ba2f69ea22ea (diff)
Recommendations
Diffstat (limited to 'web/scripts3.js')
-rw-r--r--web/scripts3.js14
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");