Skip to content

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

style check

Borislav Sapundzhiev41f28b8c8a4f
diff --git a/data/js/meta.js b/data/js/meta.js
index 81a062162..5d6d86bea 100644
--- a/data/js/meta.js
+++ b/data/js/meta.js
@@ -71,14 +71,14 @@ define(function(require, exports, module) {
pathOld += TSCORE.dirSeparator;
}
- if(pathOld != pathNew) {
+ if (pathOld != pathNew) {
path = pathNew;
}
var newName = TSCORE.Utils.baseName(newFileName) + "." + element.name.split('.').pop();
var newFilePath = path + TSCORE.dirSeparator + TSCORE.metaFolder + TSCORE.dirSeparator + newName;
TSCORE.IO.renameFile(element.path, newFilePath);
- if(pathOld == TSCORE.currentPath) {
+ if (pathOld == TSCORE.currentPath) {
element.name = newName;
element.path = newFilePath;
} else {
diff --git a/data/js/utils.js b/data/js/utils.js
index 4f51d6d9f..b4e3e490f 100644
--- a/data/js/utils.js
+++ b/data/js/utils.js
@@ -51,7 +51,7 @@ define(function(require, exports, module) {
};
var dirName = function(dirPath) {
- return dirPath.replace(/\/[^\/]*$/,'');
+ return dirPath.replace(/\/[^\/]*$/, '');
//return dirPath.match( /(.*)[/\]/)[1];
};