Skip to content

Commit

Permalink
Fix result count
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlamin committed Jul 26, 2024
1 parent d956a38 commit d0f1dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wwwroot/files/naming.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ <h4>M2 naming prefixes</h4>
const namingForm = document.getElementById("namingForm");
const submitButton = document.getElementById("submitButton");
const result = document.getElementById("result");
const resultTitle = document.getElementById("resultTitle");
var Elements = {
table: null,
currentID: 0
Expand Down Expand Up @@ -280,7 +281,7 @@ <h4>M2 naming prefixes</h4>
}).then(function(response) {
return response.text();
}).then(function (data) {
resultTitle.innerHTML = "Result (" + (data.split('\n').length - 1) + " names)";
resultTitle.innerHTML = "Result (" + (data.split('\n').length) + " names)";
result.innerHTML = data;
submitButton.disabled = false;
submitButton.classList.remove("disabled");
Expand Down

0 comments on commit d0f1dda

Please sign in to comment.