Textboxes disabled via xbl properties don't have proper styling (86899). r=kerz sr=ben

This commit is contained in:
blakeross%telocity.com 2001-06-26 02:45:44 +00:00
parent 0bdc7c6587
commit 8116bf9163
2 changed files with 8 additions and 2 deletions

View File

@ -47,6 +47,8 @@
var checked = document.getElementById("advancedMailFTP").checked;
var field = document.getElementById("advancedMailFTPAddress");
field.disabled = !checked;
if (checked)
field.focus();
}
/*

View File

@ -68,11 +68,15 @@
onget="return this.inputField.type;"/>
<property name="maxlength" onset="this.inputField.maxlength = val; return val;"
onget="return this.inputField.maxlength;"/>
<property name="disabled" onset="this.inputField.disabled = val; return val;"
<property name="disabled" onset="this.inputField.disabled = val;
if (val) this.setAttribute('disabled', 'true');
else this.removeAttribute('disabled'); return val;"
onget="return this.inputField.disabled;"/>
<property name="size" onset="this.inputField.size = val; return val;"
onget="return this.inputField.size;"/>
<property name="readonly" onset="this.inputField.readonly = val; return val;"
<property name="readonly" onset="this.inputField.readonly = val;
if (val) this.setAttribute('disabled', 'true');
else this.removeAttribute('disabled'); return val;"
onget="return this.inputField.readonly;"/>
<method name="select">