mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 22:25:04 +02:00
MDL-29743 quiz: Finish attempt link didn't save responses in some brosers.
Thanks to Brandon Browning for identifying the problem. It is quite subtle why this typo would have this effect. You need to look at the implementation of the preventDefault method in lib/yui/3.4.1/build/event-base/event-base.js.
This commit is contained in:
parent
6be90ce05f
commit
cb1564b1ce
@ -170,7 +170,7 @@ M.mod_quiz.nav.init = function(Y) {
|
||||
|
||||
if (Y.one('a.endtestlink')) {
|
||||
Y.on('click', function(e) {
|
||||
e.preventDefault(e);
|
||||
e.preventDefault();
|
||||
Y.one('#followingpage').set('value', -1);
|
||||
Y.one('#responseform').submit();
|
||||
}, 'a.endtestlink');
|
||||
|
Loading…
x
Reference in New Issue
Block a user