diff options
author | 2014-03-10 22:50:16 +0700 | |
---|---|---|
committer | 2014-03-10 22:50:16 +0700 | |
commit | fe4e0d7058a77ec8715f1a15f9374ec86b6fb9a5 (patch) | |
tree | d70128f0bf415934cdca8bde0c7ad374072eaf0a /web | |
parent | f99f153619d99cd0ca44de17a22926436160d940 (diff) |
admin setPopular
Diffstat (limited to 'web')
-rw-r--r-- | web/scripts3.js | 13 |
1 files changed, 11 insertions, 2 deletions
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="<div id=\"dialogb\" onclick=\"closeDialog()\"></div>"; - dhtml+="<table id=\"dialogt\"><tr><td><div id=\"dialogw\"><div id=\"dialogc\" onclick=\"closeDialog()\"></div>"; + var dhtml="<table id=\"dialogt\"><tr><td><div id=\"dialogb\" onclick=\"closeDialog()\"></div><div id=\"dialogw\"><div id=\"dialogc\" onclick=\"closeDialog()\"></div>"; dhtml+=html; dhtml+="</div></td></tr></table>"; $('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("<p>OK!</p>"); + }); + return false; +} + +/******************************************************************************/ + jQuery.fn.selectText = function(){ var d = document; if (d.body.createTextRange) { |