Remove the TODO, this cannot be implemented because the browser only allows the call...
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 20 Jun 2024 09:14:00 +0000 (11:14 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 20 Jun 2024 09:14:00 +0000 (11:14 +0200)
ts/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Controller/FileProcessor.js

index 1e8b8f4a93d75cb9953fa64cd9cb7d96f3e7bd76..7a975b77e3778d690abfcf92d8e57268e725bda1 100644 (file)
@@ -113,10 +113,7 @@ export class FileProcessor {
     replaceButton.classList.add("button", "small");
     replaceButton.textContent = getPhrase("wcf.global.button.replace");
     replaceButton.addEventListener("click", () => {
-      // TODO show dialog if the user really wants to replace the file.
-      //  the old will be deleted
       this.#replaceElement = element;
-
       // add to context an extra attribute that the replace button is clicked.
       // after the dialog is closed or the file is selected, the context will be reset to his old value.
       // this is necessary as the serverside validation will otherwise fail.
index 05e83a6bf52b40bcefc0f2647e5197ab6485eb6d..4e515588889973836921bed0d6c2558260cdcb4f 100644 (file)
@@ -94,8 +94,6 @@ define(["require", "exports", "WoltLabSuite/Core/Language", "WoltLabSuite/Core/A
             replaceButton.classList.add("button", "small");
             replaceButton.textContent = (0, Language_1.getPhrase)("wcf.global.button.replace");
             replaceButton.addEventListener("click", () => {
-                // TODO show dialog if the user really wants to replace the file.
-                //  the old will be deleted
                 this.#replaceElement = element;
                 // add to context an extra attribute that the replace button is clicked.
                 // after the dialog is closed or the file is selected, the context will be reset to his old value.