X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=02fd0ea905546c33191c6817103018dae5ea689c;hb=3145460693b63be7460b461d862a09e5d2151943;hp=030f9be6f7726267b3dd65ebe705267ba567f61d;hpb=f2a4c97e9908592d7d187c231198d5d4e66c2a40;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 030f9be..02fd0ea 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1365,7 +1365,7 @@ function getShownSoneId() { * @returns The ID of the currently shown Sones */ function getShownSoneIds() { - var soneIds = new Array(); + var soneIds = []; sone.find("#known-sones .sone .id").each(function() { soneIds.push($(this).text()); }); @@ -1946,10 +1946,10 @@ $(document).ready(function() { /* Ajaxifies all posts. */ /* calling getTranslation here will cache the necessary values. */ - getTranslation("WebInterface.Confirmation.DeletePostButton", function(text) { - getTranslation("WebInterface.Confirmation.DeleteReplyButton", function(text) { - getTranslation("WebInterface.DefaultText.Reply", function(text) { - getTranslation("WebInterface.Button.Comment", function(text) { + getTranslation("WebInterface.Confirmation.DeletePostButton", function() { + getTranslation("WebInterface.Confirmation.DeleteReplyButton", function() { + getTranslation("WebInterface.DefaultText.Reply", function() { + getTranslation("WebInterface.Button.Comment", function () { sone.find(".post").each(function() { ajaxifyPost(this); });