<% formPassword|html>
@@ -8,7 +8,7 @@
@@ -24,7 +24,7 @@
@@ -34,7 +34,7 @@
$(document).ready(function() {
$("#sone .post").each(function() {
postId = $(this).attr("id");
- enhanceDeletePostButton("#sone .post#" + postId + " > .status-line .delete button", postId);
+ enhanceDeletePostButton("#sone .post#" + postId + " > .inner-part > .status-line .delete button", postId);
(function(postId) {
$("#sone .post#" + postId + " .reply").each(function() {
replyId = $(this).attr("id");
@@ -84,13 +84,61 @@
});
return false;
});
+ $("#sone .blacklist").submit(function() {
+ var blacklistElement = this;
+ $.getJSON("ajax/blacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+ $(getSoneElement(blacklistElement)).slideUp();
+ });
+ return false;
+ });
+ $("#sone .unblacklist").submit(function() {
+ var unblacklistElement = this;
+ $.getJSON("ajax/unblacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+ $(getSoneElement(unblacklistElement)).slideUp();
+ });
+ return false;
+ });
+ });
+
+
+
+ <%if !webInterface.core.identityManager.connected>
+
+ <%/if>
+