fix for MDL-10440 IE7 and IE6 on win xp error when changing "disable" state of "Start date"

This commit is contained in:
jamiesensei 2007-07-13 08:14:37 +00:00
parent 4256a13437
commit c0056e2227

View File

@ -137,16 +137,18 @@ function lockoptionsallsetup(formid) {
if (master == undefined) {
continue;
}
master.onclick = function() {return lockoptionsall(this.form.getAttribute('id'));};
master.onblur = function() {return lockoptionsall(this.form.getAttribute('id'));};
master.onchange = function() {return lockoptionsall(this.form.getAttribute('id'));};
master.formid = formid;
master.onclick = function() {return lockoptionsall(this.formid);};
master.onblur = function() {return lockoptionsall(this.formid);};
master.onchange = function() {return lockoptionsall(this.formid);};
}
for (var i = 0; i < form.elements.length; i++){
var formelement = form.elements[i];
if (formelement.type=='reset') {
formelement.onclick = function() {this.form.reset();return lockoptionsall(this.form.getAttribute('id'));};
formelement.onblur = function() {this.form.reset();return lockoptionsall(this.form.getAttribute('id'));};
formelement.onchange = function() {this.form.reset();return lockoptionsall(this.form.getAttribute('id'));};
formelement.formid = formid;
formelement.onclick = function() {this.form.reset();return lockoptionsall(this.formid);};
formelement.onblur = function() {this.form.reset();return lockoptionsall(this.formid);};
formelement.onchange = function() {this.form.reset();return lockoptionsall(this.formid);};
}
}
return lockoptionsall(formid);