Closed
Bug 250824
Opened 20 years ago
Closed 20 years ago
Setting datepicker.disabled = true doesn't work (setAttribute does)
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gekacheka, Assigned: mostafah)
References
Details
Attachments
(1 file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 In calendar from cvs on Moz1.7 or sunbird (1.8): Setting datepicker.disabled = true; doesn't work (not disabled). Workaround: datepicker.setAttribute("disabled", true) Setting datetimepicker.disabled = true; only disables timepicker subcomponent, not datepicker subcomponent. Difference is timepicker.xbl provides a .disabled property which disables components, while datepicker does not. Reproducible: Always Steps to Reproduce: 1. 2. 3.
datepicker.xbl add property "disabled", calls method "setDisabled" constructor: set this.kButton (used by setDisabled) rename this.kCalendar to this.kMinimonth (component was renamed) init this.disabled to attribute value fix indentation of method parameters add method "setDisabled", sets subcomponent attributes timepicker.xbl add comment to disabled property constructor: init disabled property from attribute value setDisabled: remove obsolete comments
Works on Moz1.7 and sunbird (1.8) Tests: eventDialog allDay checkbox still enables/disables timepickers, not datepickers. after bug 220075 patches todoDialog.js, start or due checkbox enables/disables both its datepicker and timepicker in same row.
Assignee | ||
Comment 3•20 years ago
|
||
Checked in . Thanks
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 4•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in
before you can comment on or make changes to this bug.
Description
•