From 0b3c15851c0fbad3ee63cf0df298186a26d2a462 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 24 Apr 2014 01:29:12 +0700 Subject: Recommendations --- web/scripts3.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'web') 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("

OK!

"); + }).fail(function() { + $(e).closest("article").append("

Ошибка

"); + }); + 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"); -- cgit v1.2.3