X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=c1ea806941b735c1ef7610eb675491385a5af00d;hb=863940aed55e088223af10e2707cc2f427ccc6bc;hp=a43131a61d34e5a64eb7c794eeb1e1d3b3023934;hpb=16a69fdf1e4d4b7852ca8e2abdfd09470207ec6b;p=Sone.git
diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html
index a43131a..c1ea806 100644
--- a/src/main/resources/templates/include/head.html
+++ b/src/main/resources/templates/include/head.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,17 +84,31 @@
});
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;
+ });
});