TagSpaces is an offline, open source, document manager with tagging support
Show file names in delete message
Borislav Sapundzhiev3ba86a731763
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.jsindex 758d5019b..8191df71a 100644--- a/data/ext/perspectiveGrid/perspectiveUI.js+++ b/data/ext/perspectiveGrid/perspectiveUI.js@@ -219,8 +219,14 @@ define(function(require, exports, module) {});$("#" + this.extensionID + "DeleteSelectedFilesButton").on("click", function() {+ var selFiles = [];+ TSCORE.selectedFiles.forEach(function(file) {+ selFiles.push(TSCORE.Utils.baseName(file));+ });TSCORE.showConfirmDialog($.i18n.t('ns.dialogs:fileDeleteTitleConfirm'),- $.i18n.t('ns.dialogs:selectedFilesDeleteContentConfirm'), function() {+ $.i18n.t('ns.dialogs:selectedFilesDeleteContentConfirm', {+ selectedFiles: selFiles.toString()+ }), function() {TSCORE.selectedFiles.forEach(function(file) {TSCORE.IO.deleteElement(file);});diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.jsindex 726e8155d..974c38035 100644--- a/data/ext/perspectiveList/perspectiveUI.js+++ b/data/ext/perspectiveList/perspectiveUI.js@@ -64,8 +64,14 @@ define(function(require, exports, module) {});$("#" + this.extensionID + "DeleteSelectedFilesButton").on("click", function() {+ var selFiles = [];+ TSCORE.selectedFiles.forEach(function(file) {+ selFiles.push(TSCORE.Utils.baseName(file));+ });TSCORE.showConfirmDialog($.i18n.t('ns.dialogs:fileDeleteTitleConfirm'),- $.i18n.t('ns.dialogs:selectedFilesDeleteContentConfirm'), function() {+ $.i18n.t('ns.dialogs:selectedFilesDeleteContentConfirm', {+ selectedFiles: selFiles.toString()+ }), function() {TSCORE.selectedFiles.forEach(function(file) {TSCORE.IO.deleteElement(file);});diff --git a/data/locales/en_US/ns.dialogs.json b/data/locales/en_US/ns.dialogs.jsonindex b649063b9..119dc137e 100644--- a/data/locales/en_US/ns.dialogs.json+++ b/data/locales/en_US/ns.dialogs.json@@ -10,7 +10,7 @@"closingEditedFileContentConfirm": "If you confirm, all the changes you made will be lost.","fileDeleteTitleConfirm": "Delete File(s)","fileDeleteContentConfirm": "The file __filePath__ will be permanently deleted and cannot be recovered. Are you sure?",- "selectedFilesDeleteContentConfirm": "All selected files will be permanently deleted and cannot be recovered. Are you sure?",+ "selectedFilesDeleteContentConfirm": "All selected files '__selectedFiles__' will be permanently deleted and cannot be recovered. Are you sure?","fileSaveTitleConfirm": "Confirm File Save","fileSaveContentConfirm": "Do you want to overwrite the current file?","errorOpeningLocationAlert": "Error occurred while opening a path! Currently opened location will be closed.",