Update the timestamp for a new reply
[Sone.git] / src / main / resources / static / javascript / sone.js
index 02fd0ea..7ef585d 100644 (file)
@@ -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);
                                }
@@ -1949,8 +1950,8 @@ $(document).ready(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() {
+                getTranslation("WebInterface.Button.Comment", function () {
+                    sone.find(".post").each(function() {
                                                ajaxifyPost(this);
                                        });
                                });