Skip to content

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

connecting the new file create functions (md,html and txt)

Ilian99f96e444388
diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.js
index 47808fb3e..5903823a1 100644
--- a/data/ext/perspectiveList/perspectiveUI.js
+++ b/data/ext/perspectiveList/perspectiveUI.js
@@ -132,6 +132,21 @@ console.log("Loading UI for perspectiveList");
TSCORE.navigateToDirectory(TSCORE.currentPath);
});
+ $("#"+this.extensionID+"CreateHTMLFileButton")
+ .click(function() {
+ TSCORE.createHTMLFile();
+ });
+
+ $("#"+this.extensionID+"CreateMDFileButton")
+ .click(function() {
+ TSCORE.createMDFile();
+ });
+
+ $("#"+this.extensionID+"CreateTXTFileButton")
+ .click(function() {
+ TSCORE.createTXTFile();
+ });
+
// Disabling all buttons by no data
this.viewToolbar.find(".btn").prop('disabled', true);
@@ -316,7 +331,10 @@ console.log("Loading UI for perspectiveList");
"appendTo": "body",
"helper": "clone",
"revert": true,
- "start": function() { self.selectFile(this, $(this).attr("filepath")); }
+ "start": function() {
+ console.log("Start dragging -----");
+ self.selectFile(this, $(this).attr("filepath"));
+ }
});
this.fileTable.$('.fileSelection')