X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=809bd5772ecfe1ab4def15bbb280e9e999d36662;hb=f40370437636a2a706ea1d605f716c8f624a735f;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..809bd57 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -8,7 +8,9 @@ @@ -24,27 +26,65 @@ + + @@ -68,33 +108,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; - }); });