mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 926489 - Replace className with classList. r=dao
This commit is contained in:
parent
b420bd9fc0
commit
e09da9fcaf
@ -807,8 +807,7 @@
|
||||
|
||||
this.yearField = document.getAnonymousElementByAttribute(this, "anonid", yfield);
|
||||
if (!twoDigitYear)
|
||||
this.yearField.parentNode.className =
|
||||
"datetimepicker-input-subbox datetimepicker-year";
|
||||
this.yearField.parentNode.classList.add("datetimepicker-input-subbox", "datetimepicker-year");
|
||||
this.monthField = document.getAnonymousElementByAttribute(this, "anonid", mfield);
|
||||
this.dateField = document.getAnonymousElementByAttribute(this, "anonid", dfield);
|
||||
|
||||
@ -1178,7 +1177,7 @@
|
||||
return;
|
||||
|
||||
var target = event.originalTarget;
|
||||
if (target.className == "datepicker-gridlabel" &&
|
||||
if (target.classList.contains("datepicker-gridlabel") &&
|
||||
target != this.selectedItem) {
|
||||
this.selectedItem = target;
|
||||
this._dateValue = new Date(this._displayedDate);
|
||||
|
Loading…
Reference in New Issue
Block a user