From 51696aa0e80945534e8fd2593a49899bf35b56f9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 13 Jul 2023 18:43:38 +0200 Subject: [PATCH] Remove obsolete code --- ts/WoltLabSuite/Core/Date/Picker.ts | 2 -- wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/ts/WoltLabSuite/Core/Date/Picker.ts b/ts/WoltLabSuite/Core/Date/Picker.ts index 3585002af4..c0cb4a8de8 100644 --- a/ts/WoltLabSuite/Core/Date/Picker.ts +++ b/ts/WoltLabSuite/Core/Date/Picker.ts @@ -809,7 +809,6 @@ const DatePicker = { openButton.type = "button"; openButton.className = "inputSuffix button jsTooltip"; openButton.title = Language.get("wcf.date.datePicker"); - openButton.setAttribute("aria-label", Language.get("wcf.date.datePicker")); openButton.setAttribute("aria-haspopup", "true"); openButton.setAttribute("aria-expanded", "false"); openButton.addEventListener("click", (event) => { @@ -836,7 +835,6 @@ const DatePicker = { clearButton.type = "button"; clearButton.className = "inputSuffix button jsTooltip"; clearButton.title = Language.get("wcf.date.datePicker.clear"); - clearButton.setAttribute("aria-label", Language.get("wcf.date.datePicker.clear")); clearButton.addEventListener("click", () => { if (!element.disabled) { this.clear(element); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index f0af85c64e..bcfb8ec537 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -674,7 +674,6 @@ define(["require", "exports", "tslib", "../Core", "./Util", "../Dom/Change/Liste openButton.type = "button"; openButton.className = "inputSuffix button jsTooltip"; openButton.title = Language.get("wcf.date.datePicker"); - openButton.setAttribute("aria-label", Language.get("wcf.date.datePicker")); openButton.setAttribute("aria-haspopup", "true"); openButton.setAttribute("aria-expanded", "false"); openButton.addEventListener("click", (event) => { @@ -699,7 +698,6 @@ define(["require", "exports", "tslib", "../Core", "./Util", "../Dom/Change/Liste clearButton.type = "button"; clearButton.className = "inputSuffix button jsTooltip"; clearButton.title = Language.get("wcf.date.datePicker.clear"); - clearButton.setAttribute("aria-label", Language.get("wcf.date.datePicker.clear")); clearButton.addEventListener("click", () => { if (!element.disabled) { this.clear(element); -- 2.20.1