Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d46c88a

Browse files
committed
set type on button to avoid default of submit.
1 parent 6cfe5fb commit d46c88a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runestone/shortanswer/js/shortanswer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ ShortAnswer.prototype.renderHTML = function() {
9494

9595
this.submitButton = document.createElement("button");
9696
$(this.submitButton).addClass("btn btn-default");
97+
this.submitButton.type = "button";
9798
this.submitButton.textContent = "Save";
9899
this.submitButton.onclick = function () {
99100
this.submitJournal();

0 commit comments

Comments
 (0)