blob: f417dfc4db7ecf951ff48dc767c455f300a4f187 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
});
});
}
|