-
Notifications
You must be signed in to change notification settings - Fork 1
/
moodle-mailsimulator_js.patch
38 lines (32 loc) · 1.48 KB
/
moodle-mailsimulator_js.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 58423317546210333434a25c4b8ac9c456916002 Mon Sep 17 00:00:00 2001
From: Pavel Sokolov <[email protected]>
Date: Fri, 1 Apr 2022 11:26:22 +0300
Subject: [PATCH] Fixing mailsimulator submit button
---
mod/assign/amd/build/grading_panel.min.js | Bin 7506 -> 7550 bytes
mod/assign/amd/src/grading_panel.js | 4 +++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/mod/assign/amd/build/grading_panel.min.js b/mod/assign/amd/build/grading_panel.min.js
index 6302f174e8b08c6dcd4488e4434fdb57898429b7..7d38265aed0de2af7ee6899d5e17ec1cc88f553c 100644
GIT binary patch
delta 75
zcmca)_0MWUsgzx2nnp=RX0cvgVs5H}qOGlhdTwH7PH|>#X-;BEeo=f{YHCVSVsf^+
eW_7AwK~ZX1YF>#;YFc7xPKkzQ?dEo=(@X$91{_}i
delta 31
mcmexob;)W&sgzKvUO`c6S!!O1OKMtTX-<iT=H|^(r<nlJ&kT?N
diff --git a/mod/assign/amd/src/grading_panel.js b/mod/assign/amd/src/grading_panel.js
index f6a1e4cfa95..025895ba2d3 100644
--- a/mod/assign/amd/src/grading_panel.js
+++ b/mod/assign/amd/src/grading_panel.js
@@ -386,7 +386,9 @@ define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragm
var region = $(this._region);
// Add an event listener to prevent form submission when pressing enter key.
region.on('submit', 'form', function(e) {
- e.preventDefault();
+ if (this.name !== 'mailsimulator_feedback') {
+ e.preventDefault();
+ }
});
docElement.on('next-user', this._getNextUser.bind(this));
--
2.32.0 (Apple Git-132)