From: Fabii547 Date: Thu, 3 Jun 2021 10:07:18 +0000 (+0200) Subject: Fix ids of instruction items in devtools (#4254) X-Git-Tag: 5.4.0_Beta_2~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c493baf547d2485c6b2e08d4125ed1416bf1b48;p=GitHub%2FWoltLab%2FWCF.git Fix ids of instruction items in devtools (#4254) --- 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;