TagSpaces is an offline, open source, document manager with tagging support
cleaning up
uggrockb8618a504230
diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex 1b8a89784..8ee2b0ac6 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -94,7 +94,12 @@ define(function(require, exports, module) {var newFilePath = TSCORE.currentPath + TSCORE.dirSeparator + fileNameWithOutExt + '_' + currentDateTime + '.' + fileExt;TSCORE.IO.copyFilePromise(_openedFilePath, newFilePath).then(function(success) {TSCORE.hideWaitingDialog();- TSPOSTIO.copyFile(_openedFilePath, newFilePath);+ TSCORE.showSuccessDialog("File copied successfully.");+ var targetDirectory = TSCORE.TagUtils.extractContainingDirectoryPath(newFilePath);+ if (targetDirectory === TSCORE.currentPath) {+ TSCORE.navigateToDirectory(TSCORE.currentPath);+ TSCORE.PerspectiveManager.clearSelectedFiles();+ }}, function(err) {TSCORE.hideWaitingDialog();TSCORE.showAlertDialog(err);diff --git a/data/js/postioapi.js b/data/js/postioapi.jsindex 9e55792e3..78ba7f86b 100644--- a/data/js/postioapi.js+++ b/data/js/postioapi.js@@ -13,16 +13,6 @@ define(function(require, exports, module) {TSCORE.hideWaitingDialog();};- exports.copyFile = function(sourceFilePath, targetFilePath) {- TSCORE.showSuccessDialog("File copied successfully.");- var targetDirectory = TSCORE.TagUtils.extractContainingDirectoryPath(targetFilePath);- if (targetDirectory === TSCORE.currentPath) {- TSCORE.navigateToDirectory(TSCORE.currentPath);- TSCORE.PerspectiveManager.clearSelectedFiles();- }- TSCORE.hideWaitingDialog();- };-exports.renameFile = function(oldFilePath, newFilePath) {var lastOpenedFile = TSCORE.FileOpener.getOpenedFilePath();if (lastOpenedFile !== undefined) {