TagSpaces is an offline, open source, document manager with tagging support
Merge branch 'GH426-Keybindings' of https://github.com/tagspaces/tagspaces into develop # data/js/core.ui.js
kristiyandd6904bcecc351
diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 935d1a6bd..30047ed1a 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -644,9 +644,11 @@ define(function(require, exports, module) {});}- function showRenameFileDialog(){+ function showRenameFileDialog(filePath){if(TSCORE.selectedFiles[0]){- $('#renamedFileName').val(TSCORE.selectedFiles[0]);+ $('#renamedFileName').attr('filepath', filePath);+ $('#renamedFileName').val(TSCORE.TagUtils.extractFileName(filePath));+ //$('#renamedFileName').val(TSCORE.selectedFiles[0]);$('#formFileRename').validator();$('#formFileRename').submit(function(e) {e.preventDefault();@@ -670,8 +672,6 @@ define(function(require, exports, module) {$('#dialogFileRename').draggable({handle: ".modal-header"});- } else {- TSCORE.showAlertDialog("Renaming file failed. Please select a file.");}}