From: Matthias Schmidt Date: Mon, 26 Apr 2021 14:08:25 +0000 (+0200) Subject: Fix selector for instruction edit and delete button in DevTools X-Git-Tag: 5.4.0_Alpha_1~46 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8a743d1bb3acb1ce7323d43bee983f947bebd89;p=GitHub%2FWoltLab%2FWCF.git Fix selector for instruction edit and delete button in DevTools --- diff --git a/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.ts b/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.ts index eafe905349..2c4f36975e 100644 --- a/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.ts +++ b/ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.ts @@ -220,10 +220,10 @@ class Instructions { instructionList.appendChild(listItem); document - .getElementById(`${this.formFieldId}_instruction${instructionsId}_deleteButton`)! + .getElementById(`${this.formFieldId}_instruction${instructionId}_deleteButton`)! .addEventListener("click", (ev) => this.removeInstruction(ev)); document - .getElementById(`${this.formFieldId}_instruction${instructionsId}_editButton`)! + .getElementById(`${this.formFieldId}_instruction${instructionId}_editButton`)! .addEventListener("click", (ev) => this.editInstruction(ev)); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.js index 85cafa5453..044d0af317 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.js @@ -129,10 +129,10 @@ define(["require", "exports", "tslib", "../../../../../../Core", "../../../../.. listItem.innerHTML = content; instructionList.appendChild(listItem); document - .getElementById(`${this.formFieldId}_instruction${instructionsId}_deleteButton`) + .getElementById(`${this.formFieldId}_instruction${instructionId}_deleteButton`) .addEventListener("click", (ev) => this.removeInstruction(ev)); document - .getElementById(`${this.formFieldId}_instruction${instructionsId}_editButton`) + .getElementById(`${this.formFieldId}_instruction${instructionId}_editButton`) .addEventListener("click", (ev) => this.editInstruction(ev)); } /**