Skip to content

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

node-webkit create new files fix

Borislav Sapundzhievb8e45e31175a
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index 64e8aae8c..0b1a79e62 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -876,7 +876,7 @@ define(function(require, exports, module) {
}
function createNewTextFile(filePath, content) {
- TSCORE.IO.saveFilePromise(filePath, content).then(function() {
+ TSCORE.IO.saveFilePromise(filePath, content).then(function(isNewFile) {
TSPOSTIO.saveTextFile(filePath, isNewFile);
}, function(error) {
TSCORE.hideLoadingAnimation();
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index 39cc9c14d..9d63b4367 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -6,6 +6,7 @@ define(function(require, exports, module) {
console.log('Loading perspective.manager.js ...');
var perspectives;
var TSCORE = require('tscore');
+ var TSPOSTIO = require("tspostioapi");
function initPerspective(extPath) {
return new Promise(function(resolve, reject) {