зеркало из https://github.com/mozilla/gecko-dev.git
Bug 926489 - Replace className with classList. r=dao
This commit is contained in:
Родитель
b420bd9fc0
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче