mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Textboxes disabled via xbl properties don't have proper styling (86899). r=kerz sr=ben
This commit is contained in:
parent
0bdc7c6587
commit
8116bf9163
@ -47,6 +47,8 @@
|
||||
var checked = document.getElementById("advancedMailFTP").checked;
|
||||
var field = document.getElementById("advancedMailFTPAddress");
|
||||
field.disabled = !checked;
|
||||
if (checked)
|
||||
field.focus();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user