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

Commit 21410fb

Browse files
committed
Add Save button, remove spinner image
1 parent 88baca0 commit 21410fb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

runestone/shortanswer/shortanswer.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ def setup(app):
3434
TEXT = """
3535
<div id='%(divid)s' class='journal alert alert-%(optional)s'>
3636
<form id='%(divid)s_journal' name='%(divid)s_journal' action="">
37-
<div class='directive-status-icon'><img src='../../images/spinner10.gif'/></div>
3837
<fieldset>
39-
<legend>Journal</legend>
38+
<legend>Short Answer</legend>
4039
<div class='journal-question'>%(qnum)s: %(content)s</div>
4140
<div id='%(divid)s_journal_input'>
4241
<div class='journal-options'>
@@ -45,6 +44,7 @@ def setup(app):
4544
rows='4' cols='50'></textarea>
4645
</label>
4746
</div><br />
47+
<div><button class="btn btn-default" onclick="submitJournal('%(divid)s');">Save</button></div>
4848
Instructor's Feedback:
4949
<div class='journal-options' style='padding-left:20px'>
5050
<div class='bg-info form-control' style='width:530px; background-color: #eee; font-style:italic'
@@ -60,11 +60,6 @@ def setup(app):
6060
// check if the user has already answered this journal
6161
$(function() {
6262
loadJournal('%(divid)s');
63-
$('#%(divid)s_solution').on('keyup input propertychange paste change', function() {
64-
addDelay('%(divid)s', function() {
65-
submitJournal('%(divid)s');
66-
});
67-
});
6863
});
6964
</script>
7065
</div>

0 commit comments

Comments
 (0)