variables in proper scope
authorArt Cancro <ajc@citadel.org>
Wed, 9 Nov 2022 21:40:10 +0000 (16:40 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 9 Nov 2022 21:40:10 +0000 (16:40 -0500)
webcit-ng/static/js/view_mail.js

index c26d957ce7d56767cafd9405ad864536069f497c..366610ba7cd1470c96f039581674ac3d0f75cee1 100644 (file)
@@ -383,7 +383,7 @@ function msm_field(element_name, separator) {
 function mail_send_message() {
 
        document.body.style.cursor = "wait";
-       url = "/ctdl/r/" + escapeHTMLURI(current_room)
+       let url = "/ctdl/r/" + escapeHTMLURI(current_room)
                + "/dummy_name_for_new_mail"
                + "?wefw="      + msm_field("ctdl_mc_references", "!")                          // references (if present)
                + "&subj="      + msm_field("ctdl-compose-subject-field", " ")                  // subject (if present)