Skip to content

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

adding the close file handler

Ilian82a6148b3fbb
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 1df1d3dd0..15e9cea2a 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -48,6 +48,11 @@ define(function(require, exports, module) {
.click(function() {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getPrevFile(_openedFilePath));
});
+
+ $( "#closeFile" )
+ .click(function() {
+ closeFile();
+ });
$( "#reloadFile" )
.click(function() {