Bug 926489 - Replace className with classList. r=dao

This commit is contained in:
Akshay Aurora 2013-10-26 02:41:02 +05:30
parent b420bd9fc0
commit e09da9fcaf

View File

@ -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);