TagSpaces is an offline, open source, document manager with tagging support
fixing the reassigning handler issue
uggrockb7ae4d7e4a96
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.jsindex 4bd93ffe6..6d8dfa727 100644--- a/data/ext/perspectiveGrid/perspectiveUI.js+++ b/data/ext/perspectiveGrid/perspectiveUI.js@@ -513,9 +513,6 @@ define(function(require, exports, module) {$("#" + this.extensionID + "Container").find(".fileTileSelector").find("i").removeClass("fa-check-square").addClass("fa-square-o");-- // Reseting select all button- //$("#"+this.extensionID+"ToogleSelectAll").find("i").removeClass("fa-check-square").addClass("fa-square-o");};ExtUI.prototype.selectFile = function(filePath) {@@ -594,7 +591,17 @@ define(function(require, exports, module) {var metaObj = TSCORE.Meta.findMetaObjectFromFileList(oldFilePath);$fileTile.replaceWith(this.createFileTile(title, newFilePath, fileExt, fileTags, true, metaObj));-++ if (isWin && !isWeb) {+ newFilePath = newFilePath.replace("\\", "");+ $("#" + this.extensionID + "Container div[filepath]").each(function() {+ if ($(this).attr("filepath").replace("\\", "") === newFilePath) {+ $fileTile = $(this);+ }+ });+ } else {+ $fileTile = $("#" + this.extensionID + "Container div[filepath='" + newFilePath + "']");+ }this.assingFileTileHandlers($fileTile);};