Skip to content

Commit 76c76a9

Browse files
committed
Fix student feedback message not being cleared on submit
1 parent a883149 commit 76c76a9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

feedback/templates_j2/feedback/_form.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@
194194
const c = f.find('.history-well'), m = c.find('.show-more');
195195
m.click(function() { c.find('li.initially-hidden').removeClass('initially-hidden').show(); m.hide(); });
196196
// empty textfields
197-
c.next('textarea, input[type="text"]').val("");
197+
window.setTimeout(function() {
198+
c.next('textarea, input[type="text"]').val("");
199+
})
198200
// implement edited notification
199201
const o = f.find('.only-when-edited'), i = f.serialize();
200202
let s = false;

0 commit comments

Comments
 (0)