From fe4e0d7058a77ec8715f1a15f9374ec86b6fb9a5 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 10 Mar 2014 22:50:16 +0700 Subject: admin setPopular --- web/scripts3.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/scripts3.js b/web/scripts3.js index 1513b375..3ad5a5cf 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -159,8 +159,7 @@ function showPhotoDialog(fname) { } function openDialog(html) { - var dhtml="
"; - dhtml+="
"; + var dhtml="
"; dhtml+=html; dhtml+="
"; $('body').append(dhtml); @@ -187,6 +186,16 @@ function checkUsername() { /******************************************************************************/ +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"); + a.append("

OK!

"); + }); + return false; +} + +/******************************************************************************/ + jQuery.fn.selectText = function(){ var d = document; if (d.body.createTextRange) { -- cgit v1.2.3