Skip to content

TagSpaces is an offline, open source, document manager with tagging support

adding handler for the add file button

uggrockf60cffec2787
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.js
index 6f9bad228..f9f93ecd5 100644
--- a/data/ext/perspectiveGrid/perspectiveUI.js
+++ b/data/ext/perspectiveGrid/perspectiveUI.js
@@ -211,6 +211,10 @@ console.log("Loading UI for perspectiveDefault");
self.switchThumbnailSize();
})
.prop('disabled', true);
+
+ $("#"+this.extensionID+"AddFileButton").on("click", function () {
+ $("#addFileInput").click();
+ });
// Init Tag Context Menus
this.viewContainer.on("contextmenu click", ".tagButton", function () {