var soneList = "";
$.each(sones, function() {
if (soneList != "") {
- soneList += "\n";
+ soneList += ", ";
}
soneList += this.name;
});
}
function getPostElement(element) {
- return $(element).parents(".post");
+ return $(element).hasClass("post") ? $(element) : $(element).parents(".post");
}
function getPostId(element) {