From d5b0f1f4abec231de9a6b504b837086cf630cb1f Mon Sep 17 00:00:00 2001 From: FiratUsta <67150276+FiratUsta@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:14:22 +0300 Subject: [PATCH] Fix insertFileButton referencing the old addPdfs method. (#1809) --- .../resources/static/js/multitool/PdfActionsManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/static/js/multitool/PdfActionsManager.js b/src/main/resources/static/js/multitool/PdfActionsManager.js index 8135bed3..a4e313c7 100644 --- a/src/main/resources/static/js/multitool/PdfActionsManager.js +++ b/src/main/resources/static/js/multitool/PdfActionsManager.js @@ -70,12 +70,12 @@ class PdfActionsManager { insertFileButtonCallback(e) { var imgContainer = this.getPageContainer(e.target); - this.addPdfs(imgContainer); + this.addFiles(imgContainer); } - setActions({ movePageTo, addPdfs, rotateElement }) { + setActions({ movePageTo, addFiles, rotateElement }) { this.movePageTo = movePageTo; - this.addPdfs = addPdfs; + this.addFiles = addFiles; this.rotateElement = rotateElement; this.moveUpButtonCallback = this.moveUpButtonCallback.bind(this); @@ -153,7 +153,7 @@ class PdfActionsManager { const insertFileButtonRight = document.createElement("button"); insertFileButtonRight.classList.add("btn", "btn-primary", "pdf-actions_insert-file-button"); insertFileButtonRight.innerHTML = `add`; - insertFileButtonRight.onclick = () => addPdfs(); + insertFileButtonRight.onclick = () => addFiles(); insertFileButtonRightContainer.appendChild(insertFileButtonRight); div.appendChild(insertFileButtonRightContainer);