diff --git a/extensions/xforms/resources/content/xforms.xml b/extensions/xforms/resources/content/xforms.xml index 67c01605853f..6ddaceff7cfc 100644 --- a/extensions/xforms/resources/content/xforms.xml +++ b/extensions/xforms/resources/content/xforms.xml @@ -149,7 +149,7 @@ - + @@ -161,7 +161,7 @@ - + @@ -416,6 +416,14 @@ + this.inputField.value = this.stringValue; + if (this.accessors.isReadonly()) { + this.inputField.setAttribute("readonly", "readonly"); + this.dropmarker.setAttribute("disabled", "true"); + } else { + this.inputField.removeAttribute("readonly"); + this.dropmarker.removeAttribute("disabled"); + } return true; @@ -431,6 +439,17 @@ + null + + + if (!this._dropmarker) { + this._dropmarker = + document.getAnonymousElementByAttribute(this, "anonid", "dropmarker"); + } + return this._dropmarker; + + + null @@ -465,13 +484,13 @@ @@ -791,7 +814,7 @@ if (currentElement.localName == "input") { // if we are on the button, down should focus the current selected // cell - this.selectCell(this._currentCellIndex); + this.selectCell(index); } else if ((index + 7) < this._cells.length) { this.selectCell(index + 7); }