aboutsummaryrefslogtreecommitdiff
path: root/web/scripts3.js
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-07-09 14:57:58 +0700
committerGravatar Ugnich Anton2014-07-09 14:57:58 +0700
commit7c9a7590f30873df16941057c59abdb4b8672836 (patch)
tree5e379532b670959ad3591015b741919ba60ee460 /web/scripts3.js
parent72b0f51fb006c8719219a58c3cab746cf766d2f7 (diff)
Change message privacy
Diffstat (limited to 'web/scripts3.js')
-rw-r--r--web/scripts3.js8
1 files changed, 8 insertions, 0 deletions
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("<p>OK!</p>");
+ });
+ return false;
+}
+
/******************************************************************************/
jQuery.fn.selectText = function(){