update #5
1 changed files with 4 additions and 4 deletions
|
@ -70,12 +70,12 @@ class PdfActionsManager {
|
||||||
|
|
||||||
insertFileButtonCallback(e) {
|
insertFileButtonCallback(e) {
|
||||||
var imgContainer = this.getPageContainer(e.target);
|
var imgContainer = this.getPageContainer(e.target);
|
||||||
this.addPdfs(imgContainer);
|
this.addFiles(imgContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
setActions({ movePageTo, addPdfs, rotateElement }) {
|
setActions({ movePageTo, addFiles, rotateElement }) {
|
||||||
this.movePageTo = movePageTo;
|
this.movePageTo = movePageTo;
|
||||||
this.addPdfs = addPdfs;
|
this.addFiles = addFiles;
|
||||||
this.rotateElement = rotateElement;
|
this.rotateElement = rotateElement;
|
||||||
|
|
||||||
this.moveUpButtonCallback = this.moveUpButtonCallback.bind(this);
|
this.moveUpButtonCallback = this.moveUpButtonCallback.bind(this);
|
||||||
|
@ -153,7 +153,7 @@ class PdfActionsManager {
|
||||||
const insertFileButtonRight = document.createElement("button");
|
const insertFileButtonRight = document.createElement("button");
|
||||||
insertFileButtonRight.classList.add("btn", "btn-primary", "pdf-actions_insert-file-button");
|
insertFileButtonRight.classList.add("btn", "btn-primary", "pdf-actions_insert-file-button");
|
||||||
insertFileButtonRight.innerHTML = `<span class="material-symbols-rounded">add</span>`;
|
insertFileButtonRight.innerHTML = `<span class="material-symbols-rounded">add</span>`;
|
||||||
insertFileButtonRight.onclick = () => addPdfs();
|
insertFileButtonRight.onclick = () => addFiles();
|
||||||
insertFileButtonRightContainer.appendChild(insertFileButtonRight);
|
insertFileButtonRightContainer.appendChild(insertFileButtonRight);
|
||||||
|
|
||||||
div.appendChild(insertFileButtonRightContainer);
|
div.appendChild(insertFileButtonRightContainer);
|
||||||
|
|
Loading…
Reference in a new issue