Fix some warnings.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 4 Mar 2012 18:24:44 +0000 (19:24 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 4 Mar 2012 18:24:44 +0000 (19:24 +0100)
src/main/resources/static/javascript/sone.js

index 100e9db..90bd58b 100644 (file)
@@ -807,7 +807,7 @@ function ajaxifyPost(postElement) {
                        $(".expand-post-text", getPostElement(this)).toggleClass("hidden");
                        $(".shrink-post-text", getPostElement(this)).toggleClass("hidden");
                        return false;
                        $(".expand-post-text", getPostElement(this)).toggleClass("hidden");
                        $(".shrink-post-text", getPostElement(this)).toggleClass("hidden");
                        return false;
-               })
+               });
        });
 
        /* ajaxify author/post links */
        });
 
        /* 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(" ");
        }
        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});
                }
                        ids = allIds.slice(index, index + 16).join(" ");
                        ajaxGet("markAsKnown.ajax", {"formPassword": getFormPassword(), "type": $(":input[name=type]", this.form).val(), "id": ids});
                }