X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=9330e14883de808b0101e6c0a946a4a6abd25e2e;hb=221eb70ea2ead8dab2999d3d4bdbeb3092ac58f3;hp=3a2ab57368562cb6adac2b1f34234741df3cc0cc;hpb=c319c653b790dea126c66130d0a25fd4f1d0ec46;p=Sone.git
diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html
index 3a2ab57..9330e14 100644
--- a/src/main/resources/templates/include/head.html
+++ b/src/main/resources/templates/include/head.html
@@ -32,19 +32,55 @@
+
+
@@ -68,47 +104,17 @@
});
return false;
});
- $("#sone .block").submit(function() {
- var blockElement = this;
- $.getJSON("ajax/blockSone.ajax", { "sone": getSoneId(this), "formPassword": getFormPassword() }, function() {
- $(blockElement).addClass("hidden");
- $(blockElement).parent().find(".unblock").removeClass("hidden");
- });
- return false;
- });
- $("#sone .unblock").submit(function() {
- var unblockElement = this;
- $.getJSON("ajax/unblockSone.ajax", { "sone": getSoneId(this), "formPassword": getFormPassword() }, function() {
- $(unblockElement).addClass("hidden");
- $(unblockElement).parent().find(".block").removeClass("hidden");
- });
- 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;
- });
});