X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=7ef585d502183359aaa9cbb67f11437ed9b2850b;hb=d4134498d41ca44d0495cdfe13ddaf73cdd70cad;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..7ef585d 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -145,7 +145,7 @@ function filterSoneId(soneId) { * The date and time of the last update (formatted for display) */ function updateSoneStatus(soneId, name, status, modified, locked, lastUpdated, lastUpdatedText) { - var updateSone = sone.find(".sone." + filterSoneId(soneId)); + var updateSone = sone.find(".sone." + filterSoneId(soneId)); updateSone.toggleClass("unknown", status == "unknown"). toggleClass("idle", status == "idle"). toggleClass("inserting", status == "inserting"). @@ -718,6 +718,7 @@ function ajaxifyPost(postElement) { sone.find(".post#post-" + postId + " .create-reply .sender").hide(); sone.find(".post#post-" + postId + " .create-reply .select-sender").show(); sone.find(".post#post-" + postId + " .create-reply :input[name=sender]").val(getCurrentSoneId()); + updateReplyTimes(replyId); } else { alert(error); } @@ -1365,7 +1366,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,11 +1947,11 @@ $(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) { - sone.find(".post").each(function() { + 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); }); });