From: David ‘Bombe’ Roden Date: Sun, 4 Mar 2012 18:24:44 +0000 (+0100) Subject: Fix some warnings. X-Git-Tag: 0.8^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=25d95a78644c18f7b8f5e92e430776c5cd3d8c9d;p=Sone.git Fix some warnings. --- 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}); }