TagSpaces is an offline, open source, document manager with tagging support
Fixed bug preventing saving of text files in chrome
uggrocke0c4d15cc846
diff --git a/build.number b/build.numberindex 2f84dc531..11166c31b 100644--- a/build.number+++ b/build.number@@ -1,3 +1,3 @@#Build Number for ANT. Do not edit!-#Wed Jan 09 15:05:42 CET 2013-build.number=1198+#Thu Jan 10 00:08:09 CET 2013+build.number=1200diff --git a/data/about.html b/data/about.htmlindex 242c8cca2..b57dcef65 100644--- a/data/about.html+++ b/data/about.html@@ -16,7 +16,7 @@</head><body><h1>@APPNAME@ @VERSION@.@BUILD@beta </h1>-<p>TagSpaces is a open source application for managing of your local files. You can find more information about it on this <a href="http://tagspaces.org">website</a>. For are quick TagSpaces introduction please see this <a target="_new" href="http://youtu.be/H60FN9Rrw64">video</a>.</p>+<p>TagSpaces is a open source application for managing of your local files. You can find more information on <a href="http://tagspaces.org">tagspaces.org</a>. A short video introduction in the main functionality can be found on <a target="_new" href="http://youtu.be/H60FN9Rrw64">youtube</a>.</p><p>Developers interesting in writing extensions for this application can reffer to the tagspaces project's on <a target="_new" href="https://github.com/uggrock/tagspaces">github</a>.</p><h1>Copyright</h1>Copyright (c) 2012-2013 The Tagspaces Authors. All rights reserved. Use of this source code is governed by a AGPL3 license that can be found in the <a href="LICENSE.txt">LICENSE file</a>.diff --git a/data/js/ioapi.chrome.js b/data/js/ioapi.chrome.jsindex cea06ebec..3dce44c3c 100644--- a/data/js/ioapi.chrome.js+++ b/data/js/ioapi.chrome.js@@ -58,13 +58,13 @@ IOAPI.loadTextFile = function(filePath) {console.debug("Loading file: "+filePath);if(IOAPI.plugin.fileExists(filePath)) {var fileContent = IOAPI.plugin.getTextFile(filePath);- UIAPI.updateTextEditorContent(fileContent);+ FileViewer.updateEditorContent(fileContent);} else {console.error("File does not exists...");}}-// TODO Renaming very slow+// TODO Renaming very slow, due the copy implementationIOAPI.renameFile = function(filePath, newFilePath) {console.debug("Renaming file: "+filePath+" to "+newFilePath);if(IOAPI.plugin.fileExists(newFilePath)) {@@ -82,6 +82,9 @@ IOAPI.renameFile = function(filePath, newFilePath) {IOAPI.saveTextFile = function(filePath,content) {console.debug("Saving file: "+filePath);+ if(IOAPI.plugin.fileExists(filePath)) {+ IOAPI.plugin.removeFile(filePath);+ }IOAPI.plugin.saveTextFile(filePath,content);}@@ -90,9 +93,8 @@ IOAPI.listDirectory = function(dirPath) {if(IOAPI.plugin.isDirectory(dirPath)) {try {var dirList = IOAPI.plugin.listFiles(dirPath);- console.debug("Dir content: "+JSON.stringify(dirList)); // [{"name":"The-Ultimate-Complete-Social-Media-Sizing-Cheat-Sheet1.png","type":"file","size":1945180,"lmdt":1357742820000},{"name":"IMG_1803[wine].JPG","type":"file","size":2372609,"lmdt":1353796522000}]- UIAPI.updateFileBrowserData(JSON.parse( JSON.stringify(dirList)));- //UIAPI.updateFileBrowserData(JSON.parse( '[{"name":"The-Ultimate-Complete-Social-Media-Sizing-Cheat-Sheet1.png","type":"file","size":1945180,"lmdt":1357742820000},{"name":"IMG_1803[wine].JPG","type":"file","size":2372609,"lmdt":1353796522000}]' ));+ console.debug("Dir content: "+JSON.stringify(dirList));+ UIAPI.updateFileBrowserData(dirList);} catch(ex) {console.error("Directory listing failed "+ex);}diff --git a/data/manifest.json b/data/manifest.jsonindex d8ca318a6..b1c027b94 100644--- a/data/manifest.json+++ b/data/manifest.json@@ -1,6 +1,6 @@{"name": "TagSpaces",- "version": "1.2.1197",+ "version": "1.2.1198","manifest_version": 2,"description": "TagSpaces Explorer","icons": {@@ -26,7 +26,7 @@"permissions": ["tabs", "http://*/*", "file://*/*"],- "content_security_policy": "script-src 'self' ; object-src 'self'",+ "content_security_policy": "script-src 'self' ; object-src 'self'","web_accessible_resources": ["about.html"],diff --git a/package.json b/package.jsonindex e34781142..345e3192d 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.2.1196",+ "version": "1.2.1198","fullName": "TagSpaces","id": "jid1-FBaMKxTifTSahQ","description": "TagSpaces is a firefox addon, which allows you to browse your local file system and add tags to your files.",diff --git a/update.rdf b/update.rdfindex 68a879063..e2475b25f 100644--- a/update.rdf+++ b/update.rdf@@ -7,13 +7,13 @@<r:Seq><r:li><r:Description>- <version>1.2.1196</version>+ <version>1.2.1198</version><targetApplication><r:Description><id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id><minVersion>16.0</minVersion><maxVersion>*</maxVersion>- <updateLink>http://tagspaces.com/releases/1.2/tagspaces.1.2.1196.xpi</updateLink>+ <updateLink>http://tagspaces.com/releases/1.2/tagspaces.1.2.1198.xpi</updateLink><updateInfoURL>http://tagspaces.com/releases/1.2/updateInfo.xml</updateInfoURL></r:Description></targetApplication>