Commit 2ba21d6b authored by Ivanq's avatar Ivanq

Change 'Comment and close issue' to 'Comment and reopen issue' when clicking button

parent eaa43ab5
......@@ -32,6 +32,8 @@ function drawIssueStatus() {
document.getElementById("issue_status").className = "issue-status issue-status-" + statusText;
document.getElementById("issue_status_img").src = "../../../img/issue-" + statusText + "-white.svg";
document.getElementById("issue_status_text").innerHTML = statusText[0].toUpperCase() + statusText.substr(1);
document.getElementById("comment_submit_close").innerHTML = "Comment and " + (issue.open ? "close" : "reopen") + " issue";
}
......@@ -53,8 +55,6 @@ repo.addMerger()
document.getElementById("issue_id").textContent = id;
document.getElementById("issue_json_id").textContent = jsonId;
document.getElementById("comment_submit_close").innerHTML = "Comment and " + (issue.open ? "close" : "reopen") + " issue";
drawIssueStatus();
return repo.getIssueComments(id, jsonId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment