Skip to content

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

adding handler for the new add tag menu item

Ilianf4ea5e871663
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 3c0e3354a..15330c128 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -63,11 +63,6 @@ define(function(require, exports, module) {
TSCORE.FileOpener.openFile(_openedFilePath);
});
- $( "#showFullDetails" )
- .click(function() {
- TSCORE.toggleFileDetails();
- });
-
$( "#openFileInNewWindow" )
.click(function() {
window.open("file:///"+_openedFilePath);
@@ -77,6 +72,18 @@ define(function(require, exports, module) {
.click(function() {
$('iframe').get(0).contentWindow.print();
});
+
+ $( "#tagFile" )
+ .click( function() {
+ TSCORE.PerspectiveManager.clearSelectedFiles();
+ TSCORE.selectedFiles.push(_openedFilePath);
+ TSCORE.showAddTagsDialog();
+ });
+
+ $( "#suggestTagsFile" )
+ .click( function() {
+ $("tagSuggestionsMenu").dropdown('toggle');
+ });
$( "#renameFile" )
.click( function() {