aboutsummaryrefslogtreecommitdiff
path: root/web/scripts4.js
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-07-23 03:39:32 +0700
committerGravatar Ugnich Anton2013-07-23 03:39:32 +0700
commitc449c1fe8b43f41714fe0cd87bdacf03a68587fe (patch)
tree59feeb6c4c8c5e4f9cc2697f0bd27d06c05e6514 /web/scripts4.js
parentc37d78969da40f4238573bbee2c533c878ea3844 (diff)
remove "related tags"
/dev/
Diffstat (limited to 'web/scripts4.js')
-rw-r--r--web/scripts4.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/scripts4.js b/web/scripts4.js
new file mode 100644
index 00000000..f417dfc4
--- /dev/null
+++ b/web/scripts4.js
@@ -0,0 +1,17 @@
+function blogsLoadPM(uname) {
+ $.getJSON('http://api.juick.com/pm?hash='+hash+'&uname='+uname+'&callback=?').done(function(data) {
+ var ul=$('#content>ul');
+ ul.empty();
+ $("p.page").hide();
+ $.each(data,function(i,item) {
+ var li=$("<li/>");
+ if(item.user) {
+ li.attr("class","pm-in");
+ } else {
+ li.attr("class","pm-out");
+ }
+ li.text(item.body);
+ li.appendTo(ul);
+ });
+ });
+}