Bug 1141703 - Make month buttons in datepicker do nothing if the widget is readonly and make the widget look disabled. r=Neil

This commit is contained in:
aceman 2015-03-12 11:21:00 -04:00
Родитель 5edc8a900d
Коммит bac683565f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -27,7 +27,7 @@
<content align="center">
<xul:hbox class="datetimepicker-input-box" align="center"
xbl:inherits="context">
xbl:inherits="context,disabled,readonly">
<xul:hbox class="textbox-input-box datetimepicker-input-subbox" align="center">
<html:input class="datetimepicker-input textbox-input" anonid="input-one"
size="2" maxlength="2"
@ -1147,7 +1147,7 @@
<parameter name="aDir"/>
<body>
<![CDATA[
if (!this.disabled) {
if (!this.disabled && !this.readOnly) {
var month = this._displayedDate ? this._displayedDate.getMonth() :
this.month;
this._updateUI(this.monthField, month + aDir, true);
@ -1215,7 +1215,7 @@
extends="chrome://global/content/bindings/datetimepicker.xml#datepicker">
<content align="center">
<xul:hbox class="textbox-input-box datetimepicker-input-box" align="center"
allowevents="true" xbl:inherits="context">
allowevents="true" xbl:inherits="context,disabled,readonly">
<xul:hbox class="datetimepicker-input-subbox" align="baseline">
<html:input class="datetimepicker-input textbox-input" anonid="input-one"
size="2" maxlength="2"