Skip to content

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

Bug with the smart tags fixed

uggrockb29016dab039
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index d0d9776c1..441bb76e3 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -176,9 +176,8 @@ define(function(require, exports, module) {
accept: ".tagButton",
hoverClass: "activeRow",
drop: function( event, ui ) {
- var tagName = ui.draggable.attr("tag");
- console.log("Tagging file: "+tagName+" to "+filePath);
- TSCORE.TagUtils.addTag([filePath], [tagName]);
+ console.log("Tagging file: "+TSCORE.selectedTag+" to "+filePath);
+ TSCORE.TagUtils.addTag([filePath], [TSCORE.selectedTag]);
$(ui.helper).remove();
}
})