mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-14741: fix previous fix..
This commit is contained in:
parent
4895521165
commit
f729b1997c
@ -201,11 +201,13 @@ $output .= <<<EOF
|
||||
document.getElementById(id).form.onsubmit = function() {
|
||||
tinyMCE.triggerSave();
|
||||
var ret = true;
|
||||
if ((prevOnSubmit != undefined) && prevOnSubmit()) {
|
||||
ret = true;
|
||||
prevOnSubmit = null;
|
||||
} else {
|
||||
ret = false;
|
||||
if (prevOnSubmit != undefined) {
|
||||
if (prevOnSubmit()) {
|
||||
ret = true;
|
||||
prevOnSubmit = null;
|
||||
} else {
|
||||
ret = false;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user