petr's patch to fix problem with htmlarea breaking clientside validation. Also using id's with same naming convention as formslib for htmlareas.

This commit is contained in:
jamiesensei
2006-12-05 13:21:40 +00:00
parent eca038b50b
commit 0befbdfd8f
5 changed files with 17 additions and 11 deletions
+3 -1
View File
@@ -634,12 +634,14 @@ HTMLArea.prototype.generate = function () {
}
// Moodle hack end.
var a = this.__msh_prevOnSubmit;
var ret = true;
// call previous submit methods if they were there.
if (typeof a != "undefined") {
for (var i = a.length; --i >= 0;) {
a[i]();
ret = a[i]() && ret;
}
}
return ret;
};
if (typeof f.onreset == "function") {
var funcref = f.onreset;