From 7c9a7590f30873df16941057c59abdb4b8672836 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Wed, 9 Jul 2014 14:57:58 +0700 Subject: Change message privacy --- web/scripts3.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/scripts3.js') diff --git a/web/scripts3.js b/web/scripts3.js index e0a39fa4..9cb72a98 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -266,6 +266,14 @@ function setPopular(e,mid,popular) { return false; } +function setPrivacy(e,mid) { + $.ajax('http://api.juick.com/messages/set_privacy?mid='+mid+'&hash='+hash).done(function() { + var a=$(e).closest("article"); + a.append("
OK!
"); + }); + return false; +} + /******************************************************************************/ jQuery.fn.selectText = function(){ -- cgit v1.2.3