X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=90bd58b9fbae42e3bb3a5026985a8cb106f0cf7a;hp=100e9db33b1033d3da5b07c658922832ac3cb06d;hb=25d95a78644c18f7b8f5e92e430776c5cd3d8c9d;hpb=a8d443ca97ae7a9707b19bfd90cb521cf02b106c diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 100e9db..90bd58b 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -807,7 +807,7 @@ function ajaxifyPost(postElement) { $(".expand-post-text", getPostElement(this)).toggleClass("hidden"); $(".shrink-post-text", getPostElement(this)).toggleClass("hidden"); return false; - }) + }); }); /* ajaxify author/post links */ @@ -1063,7 +1063,7 @@ function ajaxifyNotification(notification) { } notification.find("form.mark-as-read button").click(function() { allIds = $(":input[name=id]", this.form).val().split(" "); - for (index = 0; index < allIds.length; index += 16) { + for (var index = 0; index < allIds.length; index += 16) { ids = allIds.slice(index, index + 16).join(" "); ajaxGet("markAsKnown.ajax", {"formPassword": getFormPassword(), "type": $(":input[name=type]", this.form).val(), "id": ids}); }