MDL-14741: fix previous fix..

This commit is contained in:
scyrma 2008-09-03 04:13:24 +00:00
parent 4895521165
commit f729b1997c

View File

@ -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;
};