From d8a743d1bb3acb1ce7323d43bee983f947bebd89 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 26 Apr 2021 16:08:25 +0200 Subject: [PATCH] Fix selector for instruction edit and delete button in DevTools --- .../Acp/Form/Builder/Field/Devtools/Project/Instructions.ts | 4 ++-- .../Acp/Form/Builder/Field/Devtools/Project/Instructions.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)); } /** -- 2.20.1