From 2c493baf547d2485c6b2e08d4125ed1416bf1b48 Mon Sep 17 00:00:00 2001 From: Fabii547 Date: Thu, 3 Jun 2021 12:07:18 +0200 Subject: [PATCH] Fix ids of instruction items in devtools (#4254) --- .../Acp/Form/Builder/Field/Devtools/Project/Instructions.ts | 2 +- .../Acp/Form/Builder/Field/Devtools/Project/Instructions.js | 2 +- 2 files changed, 2 insertions(+), 2 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 417a5e98e2..02c62063e6 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 @@ -183,7 +183,7 @@ class Instructions { const listItem = document.createElement("li"); listItem.className = "sortableNode"; - listItem.id = `${this.formFieldId}_instructions${instructionsId}`; + listItem.id = `${this.formFieldId}_instruction${instructionId}`; listItem.dataset.instructionId = instructionId.toString(); listItem.dataset.application = instructionData.application; listItem.dataset.pip = instructionData.pip; 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 7437662066..1d4d598859 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 @@ -102,7 +102,7 @@ define(["require", "exports", "tslib", "../../../../../../Core", "../../../../.. const instructionList = document.getElementById(`${this.formFieldId}_instructions${instructionsId}_instructionList`); const listItem = document.createElement("li"); listItem.className = "sortableNode"; - listItem.id = `${this.formFieldId}_instructions${instructionsId}`; + listItem.id = `${this.formFieldId}_instruction${instructionId}`; listItem.dataset.instructionId = instructionId.toString(); listItem.dataset.application = instructionData.application; listItem.dataset.pip = instructionData.pip; -- 2.20.1