TagSpaces is an offline, open source, document manager with tagging support
adding subfolder dirlist handling
Ilianb15c3f612bc8
diff --git a/build.number b/build.numberindex 23fb84a61..d6adad85c 100644--- a/build.number+++ b/build.number@@ -1,4 +1,4 @@#Build Number for ANT. Do not edit!-#Tue Jan 07 18:17:28 CET 2014-build.number=1772+#Wed Jan 08 21:37:25 CET 2014+build.number=17813=diff --git a/data/js/core.api.js b/data/js/core.api.jsindex c320ee3a1..4cc0a85a4 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -8,7 +8,7 @@ define(function(require, exports, module) {var tsSettings = require("tssetting");var tsIOApi = require("tsioapi");- var tsIOApiDropbox = require("tsioapidropbox");+ // var tsIOApiDropbox = require("tsioapidropbox");var tsPersManager = require("tspersmanager");var tsTagUtils = require("tstagutils");var tsFileOpener = require("tsfileopener");@@ -38,6 +38,8 @@ define(function(require, exports, module) {var selectedTagData = "";var startTime = undefined;++ var subfoldersDirBrowser = undefined;function initApp() {console.log("Init application");@@ -543,13 +545,16 @@ define(function(require, exports, module) {exports.selectedTag = selectedTag;exports.selectedTagData = selectedTagData;exports.startTime = startTime;-- exports.fileListFILEEXT = 0;- exports.fileListTITLE = 1;- exports.fileListTAGS = 2;- exports.fileListFILESIZE = 3;- exports.fileListFILELMDT = 4;- exports.fileListFILEPATH = 5;- exports.fileListFILENAME = 6;+ exports.subfoldersDirBrowser = subfoldersDirBrowser;++ exports.fileListFILEEXT = 0;+ exports.fileListTITLE = 1;+ exports.fileListTAGS = 2;+ exports.fileListFILESIZE = 3;+ exports.fileListFILELMDT = 4;+ exports.fileListFILEPATH = 5;+ exports.fileListFILENAME = 6;++ exports.dirSeparator = isWin?"\\":"/";});\ No newline at end of filediff --git a/data/js/postioapi.js b/data/js/postioapi.jsindex 8ad1e3993..02b3e1e52 100644--- a/data/js/postioapi.js+++ b/data/js/postioapi.js@@ -70,6 +70,11 @@ define(function(require, exports, module) {TSCORE.updateSubDirs(anotatedDirList);};+ exports.listSubDirectories = function(dirList) {+ console.log("Listing Subdirs: "+JSON.stringify(dirList));+ TSCORE.subfoldersDirBrowser = dirList;+ };+exports.errorOpeningPath = function() {TSCORE.showAlertDialog("Error occured while opening a path! Currently opened location will be closed.");TSCORE.closeCurrentLocation();@@ -89,7 +94,7 @@ define(function(require, exports, module) {exports.selectDirectory = function(dirPath) {// TODO make the use of this function more general- var dirName = TSCORE.TagUtils.extractContainingDirectoryName(dirPath+TSCORE.TagUtils.DIR_SEPARATOR);+ var dirName = TSCORE.TagUtils.extractContainingDirectoryName(dirPath+TSCORE.dirSeparator);$("#connectionName").val(dirName);$("#folderLocation").val(dirPath);//$("#connectionName2").val(dirName);