Skip to content

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

Console.debug replaced with console.log

uggrocke53f9182e4b4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c78cbb74..795e1d8bb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
#Changelog
-##TagSpaces 1.4.135? / 2013.06.01
+##TagSpaces 1.4.1355 / 2013.06.01
- [All] Added "check for new version" functionality
- [All] De/Select (all) functionality
- [All] Added functionality for configuration of filetypes and perspectives
diff --git a/build.number b/build.number
index f2d92701f..e79e6173c 100644
--- a/build.number
+++ b/build.number
@@ -1,4 +1,4 @@
#Build Number for ANT. Do not edit!
-#Sat Jun 01 14:29:00 CEST 2013
-build.number=1357
+#Sun Jun 02 00:52:44 CEST 2013
+build.number=1361
3=
diff --git a/build.xml b/build.xml
index f62567dde..410e3c759 100644
--- a/build.xml
+++ b/build.xml
@@ -60,9 +60,9 @@ found in the LICENSE file.
<include name="perspectiveDefault/**/*"/>
<include name="perspectiveThumb/**/*"/>
<include name="perspectiveGraph/**/*"/>
- <include name="editorHTML/*"/>
- <include name="editorText/*"/>
- <include name="viewerMD/*"/>
+ <include name="editorHTML/**/*"/>
+ <include name="editorText/**/*"/>
+ <include name="viewerMD/**/*"/>
</fileset>
</copy>
<copy todir="${buildFirefoxExt.dir}/data/css" >
@@ -132,9 +132,9 @@ found in the LICENSE file.
<include name="perspectiveDefault/**/*"/>
<include name="perspectiveThumb/**/*"/>
<include name="perspectiveGraph/**/*"/>
- <include name="editorHTML/*"/>
- <include name="editorText/*"/>
- <include name="viewerMD/*"/>
+ <include name="editorHTML/**/*"/>
+ <include name="editorText/**/*"/>
+ <include name="viewerMD/**/*"/>
</fileset>
</copy>
<copy todir="${buildChrome.dir}/libs" >
diff --git a/data/css/tagspaces.less b/data/css/tagspaces.less
index bb1316acd..6fc9912b2 100644
--- a/data/css/tagspaces.less
+++ b/data/css/tagspaces.less
@@ -11,7 +11,15 @@
@media print {
#viewer {
background-color: white;
- border: 2px dotted #c0c0c0;
+ border: 2px dotted #c0c0c0;
+ top: 0;
+ left: 0;
+ margin: 5px;
+ padding: 10px;
+ font-size: 14px;
+ line-height: 18px;
+ height: 100%;
+ width: 100%;
}
}
diff --git a/data/ext/editorHTML/extension.js b/data/ext/editorHTML/extension.js
index 62b6a959c..6c90c8775 100644
--- a/data/ext/editorHTML/extension.js
+++ b/data/ext/editorHTML/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading editorHTML");
+ console.log("Loading editorHTML");
exports.id = "editorHTML"; // ID should be equal to the directory name where the ext. is located
exports.title = "HTML Editor";
exports.type = "editor";
@@ -17,7 +17,7 @@ define(function(require, exports, module) {
var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;
exports.init1 = function(filePath, containerElementID) {
- console.debug("Initalization HTML Text Editor...");
+ console.log("Initalization HTML Text Editor...");
require([
extensionDirectory+'/wysihtml5/advanced.js',
extensionDirectory+'/wysihtml5/wysihtml5-0.4.0pre.min.js',
@@ -33,7 +33,7 @@ define(function(require, exports, module) {
}
exports.init2 = function(filePath, containerElementID) {
- console.debug("Initalization HTML Text Editor...");
+ console.log("Initalization HTML Text Editor...");
require([
extensionDirectory+'/jwysiwyg/jquery.wysiwyg.js',
'css!'+extensionDirectory+'/jwysiwyg/jquery.wysiwyg.css'
@@ -45,7 +45,7 @@ define(function(require, exports, module) {
}
exports.init = function(filePath, containerElementID) {
- console.debug("Initalization HTML Text Editor...");
+ console.log("Initalization HTML Text Editor...");
require([
extensionDirectory+'/cleditor/jquery.cleditor.js',
], function() {
@@ -58,7 +58,7 @@ define(function(require, exports, module) {
}
exports.setFileType = function(fileType) {
- console.debug("setFileType not supported on this extension");
+ console.log("setFileType not supported on this extension");
}
exports.viewerMode = function(isViewerMode) {
diff --git a/data/ext/editorText/extension.js b/data/ext/editorText/extension.js
index 090020610..a145ab7d1 100644
--- a/data/ext/editorText/extension.js
+++ b/data/ext/editorText/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading editorText");
+ console.log("Loading editorText");
exports.id = "editorText"; // ID should be equal to the directory name where the ext. is located
exports.title = "Text Editor";
@@ -34,7 +34,7 @@ define(function(require, exports, module) {
}); */
exports.init = function(filePath, containerElementID) {
- console.debug("Initalization ACE Text Editor...");
+ console.log("Initalization ACE Text Editor...");
var fileExt = filePath.substring(filePath.lastIndexOf(".")+1,filePath.length).toLowerCase();
generateUI(containerElementID);
@@ -51,7 +51,7 @@ define(function(require, exports, module) {
}
exports.init2 = function(filePath, containerElementID) {
- console.debug("Initalization ACE Text Editor...");
+ console.log("Initalization ACE Text Editor...");
var fileExt = filePath.substring(filePath.lastIndexOf(".")+1,filePath.length).toLowerCase();
generateUI(containerElementID);
diff --git a/data/ext/perspectiveDefault/extension.js b/data/ext/perspectiveDefault/extension.js
index fd55f4581..0a265ce64 100644
--- a/data/ext/perspectiveDefault/extension.js
+++ b/data/ext/perspectiveDefault/extension.js
@@ -13,7 +13,7 @@ define(function(require, exports, module) {
var extensionManifestVersion = 1;
var extensionLicense = "AGPL";
- console.debug("Loading "+extensionID);
+ console.log("Loading "+extensionID);
var TSCORE = require("tscore");
require("jqueryeditinplace");
@@ -22,11 +22,11 @@ define(function(require, exports, module) {
var UI = undefined;
function init() {
- console.debug("Initializing perspective "+extensionID);
+ console.log("Initializing perspective "+extensionID);
}
var load = function () {
- console.debug("Loading perspective "+extensionID);
+ console.log("Loading perspective "+extensionID);
// TODO use css require extension for loading 'css!datatablescss'
require([
@@ -70,7 +70,7 @@ define(function(require, exports, module) {
console.log("Path: "+entry[4]);
});
TSCORE.PerspectiveManager.clearSelectedFiles();
- console.debug("Next file: "+nextFilePath);
+ console.log("Next file: "+nextFilePath);
return nextFilePath;
}
@@ -89,7 +89,7 @@ define(function(require, exports, module) {
console.log("Path: "+entry[4]);
});
TSCORE.PerspectiveManager.clearSelectedFiles();
- console.debug("Prev file: "+prevFilePath);
+ console.log("Prev file: "+prevFilePath);
return prevFilePath;
}
diff --git a/data/ext/perspectiveDefault/perspectiveUI.js b/data/ext/perspectiveDefault/perspectiveUI.js
index 07faff42e..a2eee8dbc 100644
--- a/data/ext/perspectiveDefault/perspectiveUI.js
+++ b/data/ext/perspectiveDefault/perspectiveUI.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
-console.debug("Loading UI for perspectiveDefault");
+console.log("Loading UI for perspectiveDefault");
var TSCORE = require("tscore");
@@ -75,7 +75,7 @@ console.debug("Loading UI for perspectiveDefault");
}
ExtUI.prototype.buildUI = function() {
- console.debug("Init UI module");
+ console.log("Init UI module");
var self = this;
@@ -214,7 +214,7 @@ console.debug("Loading UI for perspectiveDefault");
}).keyup(function() {
TSCORE.PerspectiveManager.clearSelectedFiles();
self.fileTable.fnFilter(this.value);
- console.debug("Filter to value: "+this.value);
+ console.log("Filter to value: "+this.value);
}))
.append($("<button>", {
@@ -299,7 +299,7 @@ console.debug("Loading UI for perspectiveDefault");
/* $("tbody", $(this.fileTable)).selectable({
filter: 'tr',
start: function() {
- console.debug("Start selecting");
+ console.log("Start selecting");
TSCORE.hideAllDropDownMenus();
TSCORE.PerspectiveManager.clearSelectedFiles();
},
@@ -310,7 +310,7 @@ console.debug("Loading UI for perspectiveDefault");
TSCORE.selectedFiles.push(rowData[TC_FILEPATH]);
self.handleElementActivation();
});
- console.debug("Selected files: "+TSCORE.selectedFiles);
+ console.log("Selected files: "+TSCORE.selectedFiles);
}
}) */
}
@@ -365,7 +365,7 @@ console.debug("Loading UI for perspectiveDefault");
// self.selectFile(titleBut, $(titleBut).attr("filepath"));
//} )
.dblclick( function() {
- console.debug("Opening file...");
+ console.log("Opening file...");
var rowData = self.fileTable.fnGetData( this );
TSCORE.FileOpener.openFile(rowData[TC_FILEPATH]);
@@ -408,7 +408,7 @@ console.debug("Loading UI for perspectiveDefault");
this.fileTable.$('.thumbImg')
.dblclick( function() {
- console.debug("Opening file...");
+ console.log("Opening file...");
TSCORE.FileOpener.openFile($(this).attr("filepath"));
} );
@@ -503,7 +503,7 @@ console.debug("Loading UI for perspectiveDefault");
}
ExtUI.prototype.handleElementActivation = function() {
- console.debug("Entering element activation handler...");
+ console.log("Entering element activation handler...");
var tagButton = $( "#"+this.extensionID+"TagButton" );
diff --git a/data/ext/perspectiveGraph/extension.js b/data/ext/perspectiveGraph/extension.js
index ea443a2e3..2f61e24de 100644
--- a/data/ext/perspectiveGraph/extension.js
+++ b/data/ext/perspectiveGraph/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading perspectiveGraph");
+ console.log("Loading perspectiveGraph");
var extensionTitle = "Graph"
var extensionID = "perspectiveGraph"; // ID should be equal to the directory name where the ext. is located
@@ -34,7 +34,7 @@ define(function(require, exports, module) {
var treeData = undefined;
exports.init = function init() {
- console.debug("Initializing View "+extensionID);
+ console.log("Initializing View "+extensionID);
viewContainer = $("#"+extensionID+"Container");
viewToolbar = $("#"+extensionID+"Toolbar");
@@ -48,7 +48,7 @@ define(function(require, exports, module) {
}
exports.load = function load() {
- console.debug("Loading View "+extensionID);
+ console.log("Loading View "+extensionID);
require([
extensionDirectory+'/d3/d3.js',
@@ -241,7 +241,7 @@ define(function(require, exports, module) {
}
exports.updateTreeData = function updateIndexData(fsTreeData) {
- console.debug("Updating tree data, Rendering graph...");
+ console.log("Updating tree data, Rendering graph...");
treeData = fsTreeData;
diff --git a/data/ext/perspectiveRiver/extension.js b/data/ext/perspectiveRiver/extension.js
index b39b7344c..16a411bd5 100644
--- a/data/ext/perspectiveRiver/extension.js
+++ b/data/ext/perspectiveRiver/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading perspectiveRiver");
+ console.log("Loading perspectiveRiver");
exports.Title = "River View"
exports.ID = "perspectiveRiver"; // ID should be equal to the directory name where the ext. is located
@@ -19,7 +19,7 @@ define(function(require, exports, module) {
var viewFooter = undefined;
exports.init = function init() {
- console.debug("Initializing View "+exports.ID);
+ console.log("Initializing View "+exports.ID);
viewContainer = $("#"+exports.ID+"Container");
viewToolbar = $("#"+exports.ID+"Toolbar");
@@ -45,7 +45,7 @@ define(function(require, exports, module) {
}
exports.load = function load() {
- console.debug("Showing View "+exports.ID);
+ console.log("Showing View "+exports.ID);
// Purging the thumbnail view, avoiding memory leak
// document.getElementById(exports.ID+"SelectableFiles").innerHTML = "";
@@ -65,7 +65,7 @@ define(function(require, exports, module) {
}
exports.setFileFilter = function setFileFilter(filter) {
- console.debug("setFileFilter not implemented in "+exports.ID);
+ console.log("setFileFilter not implemented in "+exports.ID);
}
exports.clearSelectedFiles = function() {
diff --git a/data/ext/perspectiveThumb/extension.js b/data/ext/perspectiveThumb/extension.js
index 44201f647..a98ac8fb3 100644
--- a/data/ext/perspectiveThumb/extension.js
+++ b/data/ext/perspectiveThumb/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading perspectiveThumb");
+ console.log("Loading perspectiveThumb");
exports.Title = "Thumbs"
exports.ID = "perspectiveThumb"; // ID should be equal to the directory name where the ext. is located
@@ -21,7 +21,7 @@ define(function(require, exports, module) {
var supportedFileTypeThumnailing = ['jpg','jpeg','png','gif'];
exports.init = function init() {
- console.debug("Initializing View "+exports.ID);
+ console.log("Initializing View "+exports.ID);
viewContainer = $("#"+exports.ID+"Container");
viewToolbar = $("#"+exports.ID+"Toolbar");
@@ -57,7 +57,7 @@ define(function(require, exports, module) {
$( ".ui-selected", this ).each(function() {
TSCORE.selectedFiles.push($(this).attr("filepath"));
});
- console.debug("Selected files: "+TSCORE.selectedFiles);
+ console.log("Selected files: "+TSCORE.selectedFiles);
// TSCORE.handleElementActivation();
// On selecting only one file opens it in the viewer
@@ -69,7 +69,7 @@ define(function(require, exports, module) {
}
exports.load = function load() {
- console.debug("Showing View "+exports.ID);
+ console.log("Showing View "+exports.ID);
// Purging the thumbnail view, avoiding memory leak
document.getElementById(exports.ID+"SelectableFiles").innerHTML = "";
@@ -96,7 +96,7 @@ define(function(require, exports, module) {
}
exports.setFileFilter = function setFileFilter(filter) {
- console.debug("setFileFilter not implemented in "+exports.ID);
+ console.log("setFileFilter not implemented in "+exports.ID);
}
exports.clearSelectedFiles = function() {
diff --git a/data/ext/viewerImage/extension.js b/data/ext/viewerImage/extension.js
index ff4d022aa..ece2c0760 100644
--- a/data/ext/viewerImage/extension.js
+++ b/data/ext/viewerImage/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading viewerImage");
+ console.log("Loading viewerImage");
exports.id = "viewerImage"; // ID should be equal to the directory name where the ext. is located
exports.title = "Image Viewer";
@@ -17,7 +17,7 @@ define(function(require, exports, module) {
var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;
exports.init = function(filePath, elementID) {
- console.debug("Initalization Browser Image Viewer...");
+ console.log("Initalization Browser Image Viewer...");
filePath = "file:///"+filePath;
$('#'+elementID).append($('<img>', {
@@ -32,15 +32,15 @@ define(function(require, exports, module) {
}
exports.viewerMode = function(isViewerMode) {
- console.debug("viewerMode not supported on this extension");
+ console.log("viewerMode not supported on this extension");
}
exports.setContent = function(content) {
- console.debug("setContent not supported on this extension");
+ console.log("setContent not supported on this extension");
}
exports.getContent = function() {
- console.debug("getContent not supported on this extension");
+ console.log("getContent not supported on this extension");
}
});
\ No newline at end of file
diff --git a/data/ext/viewerMD/extension.js b/data/ext/viewerMD/extension.js
index e608d5863..a939c95bb 100644
--- a/data/ext/viewerMD/extension.js
+++ b/data/ext/viewerMD/extension.js
@@ -5,7 +5,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading viewerMD");
+ console.log("Loading viewerMD");
exports.id = "viewerMD"; // ID should be equal to the directory name where the ext. is located
exports.title = "MD Viewer";
@@ -20,7 +20,7 @@ define(function(require, exports, module) {
var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;
exports.init = function(filePath, containerElementID) {
- console.debug("Initalization MD Viewer...");
+ console.log("Initalization MD Viewer...");
containerElID = containerElementID;
// TODO create a css namespace for the specific styles
// require(['css!'+extensionDirectory+'/bootstrapLite.css']);
@@ -31,7 +31,7 @@ define(function(require, exports, module) {
}
exports.setFileType = function(fileType) {
- console.debug("setFileType not supported on this extension");
+ console.log("setFileType not supported on this extension");
}
exports.viewerMode = function(isViewerMode) {
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 8cffac98e..965a79f1a 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading core.api.js ...");
+ console.log("Loading core.api.js ...");
var tsSettings = require("tssetting");
var tsIOApi = require("tsioapi");
@@ -36,7 +36,7 @@ define(function(require, exports, module) {
var selectedTagData = "";
function initApp() {
- console.debug("Init application");
+ console.log("Init application");
tsCoreUI.initUI();
@@ -52,7 +52,7 @@ define(function(require, exports, module) {
// In firefox, by empty local storage trying to load the settings from mozilla preferences
if(tsSettings.Settings == undefined && isFirefox) {
window.setTimeout(tsIOApi.loadSettings, 1000); // executes initUI and updateSettingMozillaPreferences by success
- console.debug("Loading setting with from mozilla pref execured with delay...");
+ console.log("Loading setting with from mozilla pref execured with delay...");
}
// If still nothing found, loading the default setting from the application's javascript
@@ -81,7 +81,7 @@ define(function(require, exports, module) {
// TODO check if document.ready is really needed
$(document).ready(function() {
initLayout();
- console.debug("Layout initialized");
+ console.log("Layout initialized");
// Show start hint
if(tsSettings.Settings.tagspacesList.length < 1 ) {
@@ -137,7 +137,7 @@ define(function(require, exports, module) {
function updateLogger(message) {
// TODO reactivate
- console.debug("Updating logger...");
+ console.log("Updating logger...");
// $("#footer").attr("value",message);
}
@@ -150,7 +150,7 @@ define(function(require, exports, module) {
}
function fileExists(fileName) {
- console.debug("Check if filename: "+fileName+" already exists.");
+ console.log("Check if filename: "+fileName+" already exists.");
for (var i=0; i < fileList.length; i++) {
if(fileList[i].name == fileName) {
return true;
@@ -204,7 +204,7 @@ define(function(require, exports, module) {
}
function initLayout (){
- console.debug("Initializing Layout...");
+ console.log("Initializing Layout...");
layoutContainer = $('#container').layout(
{
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index bce029909..ee142989e 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading core.ui.js ...");
+ console.log("Loading core.ui.js ...");
var TSCORE = require("tscore");
@@ -223,7 +223,7 @@ define(function(require, exports, module) {
TSCORE.Config.Settings = TSCORE.Config.DefaultSettings;
TSCORE.Config.saveSettings();
TSCORE.reloadUI();
- console.debug("Default settings loaded.");
+ console.log("Default settings loaded.");
}
);
});
@@ -253,7 +253,7 @@ define(function(require, exports, module) {
});
$( "#fileMenuDeleteFile" ).click( function() {
- console.debug("Deleting file...");
+ console.log("Deleting file...");
TSCORE.showConfirmDialog(
"Delete File(s)",
"These items will be permanently deleted and cannot be recovered. Are you sure?",
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index 2ecba2983..eb20aa1ce 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading DirectoriesUI...");
+ console.log("Loading DirectoriesUI...");
var TSCORE = require("tscore");
@@ -15,7 +15,7 @@ define(function(require, exports, module) {
var nameCurrentFavorite = undefined;
function openFavorite(path, title) {
- console.debug("Opening favorite in : "+path+" title: "+title);
+ console.log("Opening favorite in : "+path+" title: "+title);
document.title = title + " | " + TSCORE.Config.DefaultSettings.appName;
@@ -29,7 +29,7 @@ define(function(require, exports, module) {
// Updates the directory subtree
function updateSubDirs(dirList) {
- console.debug("Updating subdirs(TSCORE)..."+JSON.stringify(dirList));
+ console.log("Updating subdirs(TSCORE)..."+JSON.stringify(dirList));
// Sort the dirList alphabetically
dirList.sort(function(a,b) { return a.title.localeCompare(b.title); });
@@ -48,7 +48,7 @@ define(function(require, exports, module) {
}
function generateDirPath() {
- console.debug("Generating Directory Path...");
+ console.log("Generating Directory Path...");
$("#dirTree").empty();
$("#dirTree").addClass("accordion")
for(var i=0; i < directoryHistory.length; i++) {
@@ -330,7 +330,7 @@ define(function(require, exports, module) {
}
function deleteFolderConnection() {
- console.debug("Deleting folder connection..");
+ console.log("Deleting folder connection..");
TSCORE.Config.deleteFavorite(nameCurrentFavorite);
initFavorites();
if(TSCORE.Config.Settings["tagspacesList"][0] != undefined) {
@@ -347,7 +347,7 @@ define(function(require, exports, module) {
}
function initFavorites() {
- console.debug("Creating location menu...");
+ console.log("Creating location menu...");
$( "#favoritesList" ).empty();
var favoritesList = TSCORE.Config.Settings["tagspacesList"]
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index aeb6a09c1..3dcd7f437 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading fileOpener...");
+ console.log("Loading fileOpener...");
var TSCORE = require("tscore");
@@ -34,7 +34,7 @@ define(function(require, exports, module) {
}
function openFile(filePath) {
- console.debug("Opening file: "+filePath);
+ console.log("Opening file: "+filePath);
if(TSCORE.FileOpener.isFileEdited()) {
if(!confirm("Any unsaved changes will be lost! \nDo you want to continue?")) {
@@ -53,7 +53,7 @@ define(function(require, exports, module) {
// Getting the viewer for the file extension/type
var viewerExt = TSCORE.Config.getFileTypeViewer(fileExt);
- console.debug("File Viewer: "+viewerExt);
+ console.log("File Viewer: "+viewerExt);
initTagSuggestionMenu(filePath);
@@ -79,7 +79,7 @@ define(function(require, exports, module) {
}
function updateEditorContent(fileContent) {
- console.debug("Updating editor"); // with data: "+fileContent);
+ console.log("Updating editor"); // with data: "+fileContent);
_tsEditor.setContent(fileContent);
}
@@ -89,12 +89,12 @@ define(function(require, exports, module) {
// Getting the editor for the file extension/type
var editorExt = TSCORE.Config.getFileTypeEditor(fileExt);
- console.debug("File Editor: "+editorExt);
+ console.log("File Editor: "+editorExt);
return editorExt;
}
function editFile(filePath) {
- console.debug("Editing file: "+filePath);
+ console.log("Editing file: "+filePath);
$( "#viewer" ).empty();
@@ -116,7 +116,7 @@ define(function(require, exports, module) {
}
function saveFile(filePath) {
- console.debug("Save current file: "+filePath);
+ console.log("Save current file: "+filePath);
var content = _tsEditor.getContent();
TSCORE.IO.saveTextFile(filePath, content);
}
@@ -234,7 +234,7 @@ define(function(require, exports, module) {
.click(function() {
var tagName = $(this).attr( "tagname" );
var filePath = $(this).attr( "filepath" );
- console.debug("Tag suggestion clicked: "+tagName);
+ console.log("Tag suggestion clicked: "+tagName);
TSCORE.TagUtils.writeTagsToFile(filePath, [tagName]);
return false;
})
diff --git a/data/js/ioapi.chrome.js b/data/js/ioapi.chrome.js
index bb42c0c6a..3ef968ea1 100644
--- a/data/js/ioapi.chrome.js
+++ b/data/js/ioapi.chrome.js
@@ -8,7 +8,7 @@ define(function(require, exports, module) {
"use strict";
// Activating browser specific exports modul
- console.debug("Loading ioapi.chrome.js..");
+ console.log("Loading ioapi.chrome.js..");
var TSCORE = require("tscore");
@@ -89,12 +89,12 @@ New:
}
exports.createDirectory = function(dirPath) {
- console.debug("Creating directory: "+dirPath);
+ console.log("Creating directory: "+dirPath);
if(plugin.isDirectory(dirPath)) {
console.error("Directory already exists...");
} else {
if(plugin.createDirectory(dirPath)) {
- console.debug("Directory: "+dirPath+" created.");
+ console.log("Directory: "+dirPath+" created.");
} else {
console.error("Directory creation failed");
}
@@ -102,7 +102,7 @@ New:
}
exports.loadTextFile = function(filePath) {
- console.debug("Loading file: "+filePath);
+ console.log("Loading file: "+filePath);
if(plugin.fileExists(filePath)) {
var fileContent = plugin.getTextFile(filePath);
TSCORE.FileOpener.updateEditorContent(fileContent);
@@ -112,12 +112,12 @@ New:
}
exports.renameFile = function(filePath, newFilePath) {
- console.debug("Renaming file: "+filePath+" to "+newFilePath);
+ console.log("Renaming file: "+filePath+" to "+newFilePath);
}
exports.saveTextFile = function(filePath,content) {
- console.debug("Saving file: "+filePath);
+ console.log("Saving file: "+filePath);
/* if(plugin.fileExists(filePath)) {
plugin.removeFile(filePath);
}
@@ -125,7 +125,7 @@ New:
}
exports.listDirectory = function(dirPath) {
- console.debug("Listing directory: "+dirPath);
+ console.log("Listing directory: "+dirPath);
if(plugin.isDirectory(dirPath)) {
try {
var dirList = nativeIO.getDirEntries(dirPath);
@@ -152,7 +152,7 @@ New:
}
exports.getSubdirs = function(dirPath) {
- console.debug("Getting subdirs: "+dirPath);
+ console.log("Getting subdirs: "+dirPath);
if(nativeIO.isDirectory(dirPath)) {
try {
var dirList = nativeIO.getDirEntries(dirPath);
@@ -178,13 +178,13 @@ New:
}
exports.deleteElement = function(path) {
- console.debug("Deleting: "+path);
+ console.log("Deleting: "+path);
/* TSCORE.PerspectiveManager.refreshFileListContainer();
plugin.removeFile(path)*/
}
exports.selectDirectory = function() {
- console.debug("Select directory functionality not implemented on chrome yet!");
+ console.log("Select directory functionality not implemented on chrome yet!");
// TSCORE.showAlertDialog("Not implemented yet");
/* nativeIO.launchFolderSelect(function(dirPath){
if (dirPath && dirPath.length){
@@ -195,37 +195,37 @@ New:
exports.selectFile = function() {
// TODO implement selectFile
- console.debug("Select file functionality not implemented on chrome yet!");
+ console.log("Select file functionality not implemented on chrome yet!");
TSCORE.showAlertDialog("Select file functionality not implemented on chrome yet!")
}
exports.openDirectory = function(dirPath) {
// TODO implement openDirectory
- console.debug("Open directory functionality not implemented on chrome yet!");
+ console.log("Open directory functionality not implemented on chrome yet!");
TSCORE.showAlertDialog("Select file functionality not implemented on chrome yet!")
}
exports.openExtensionsDirectory = function() {
// TODO implement openExtensionsDirectory
- console.debug("Open extensions directory functionality not implemented on chrome yet!");
+ console.log("Open extensions directory functionality not implemented on chrome yet!");
TSCORE.showAlertDialog("Open extensions directory functionality not implemented on chrome yet!");
}
exports.createDirectoryIndex = function(dirPath) {
// TODO implement createDirectoryIndex
- console.debug("Directory indexing functionality not implemented on chrome yet!");
+ console.log("Directory indexing functionality not implemented on chrome yet!");
TSCORE.showAlertDialog("Directory indexing functionality not implemented on chrome yet!");
}
exports.createDirectoryTree = function(dirPath) {
- console.debug("Creating directory index for: "+dirPath);
- console.debug("Creating Directory Tree functionality not implemented on chrome yet!");
+ console.log("Creating directory index for: "+dirPath);
+ console.log("Creating Directory Tree functionality not implemented on chrome yet!");
// TODO implement createDirectoryTree
TSCORE.PerspectiveManager.updateTreeData();
}
exports.checkNewVersion = function() {
- console.debug("Checking for new version...");
+ console.log("Checking for new version...");
var cVer = TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"];
$.ajax({
url: 'http://tagspaces.org/releases/version.json?cVer='+cVer,
@@ -235,7 +235,7 @@ New:
TSCORE.updateNewVersionData(data);
})
.fail(function(data) {
- alert(data);
+ console.log("AJAX failed "+data);
})
// .always(function(data) {
// console.log("ajax complete: "+data);
diff --git a/data/js/ioapi.cordova.js b/data/js/ioapi.cordova.js
index a2db8f176..03d36da0e 100644
--- a/data/js/ioapi.cordova.js
+++ b/data/js/ioapi.cordova.js
@@ -1,7 +1,7 @@
/* 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 LICENSE file. */
-console.debug("Loading ioapi.cordova.js..");
+console.log("Loading ioapi.cordova.js..");
var IOAPI = (typeof IOAPI == 'object' && IOAPI != null) ? IOAPI : {};
@@ -43,15 +43,15 @@ function gotFileWriter(writer) {
// Test if plugin works
-console.debug("Current platform: "+IOAPI.plugin.getPlatform()+" with path separator: "+IOAPI.pathSeparator);
+console.log("Current platform: "+IOAPI.plugin.getPlatform()+" with path separator: "+IOAPI.pathSeparator);
IOAPI.createDirectory = function(dirPath) {
- console.debug("Creating directory: "+dirPath);
+ console.log("Creating directory: "+dirPath);
if(IOAPI.plugin.isDirectory(dirPath)) {
console.error("Directory already exists...");
} else {
if(IOAPI.plugin.createDirectory(dirPath)) {
- console.debug("Directory: "+dirPath+" created.");
+ console.log("Directory: "+dirPath+" created.");
} else {
console.error("Directory creation failed");
}
@@ -59,7 +59,7 @@ IOAPI.createDirectory = function(dirPath) {
}
IOAPI.loadTextFile = function(filePath) {
- console.debug("Loading file: "+filePath);
+ console.log("Loading file: "+filePath);
if(IOAPI.plugin.fileExists(filePath)) {
var fileContent = IOAPI.plugin.getTextFile(filePath);
UIAPI.FileOpener.updateEditorContent(fileContent);
@@ -70,14 +70,14 @@ IOAPI.loadTextFile = function(filePath) {
// TODO Renaming very slow, due the copy implementation
IOAPI.renameFile = function(filePath, newFilePath) {
- console.debug("Renaming file: "+filePath+" to "+newFilePath);
+ console.log("Renaming file: "+filePath+" to "+newFilePath);
if(IOAPI.plugin.fileExists(newFilePath)) {
console.error("Target file already exists: "+newFilePath);
} else {
if(IOAPI.plugin.fileExists(filePath)) {
IOAPI.plugin.saveBinaryFile(newFilePath,IOAPI.plugin.getBinaryFile(filePath));
IOAPI.plugin.removeFile(filePath);
- console.debug("File renamed to: "+newFilePath);
+ console.log("File renamed to: "+newFilePath);
} else {
console.error("Original file does not exists: "+filePath);
}
@@ -85,7 +85,7 @@ IOAPI.renameFile = function(filePath, newFilePath) {
}
IOAPI.saveTextFile = function(filePath,content) {
- console.debug("Saving file: "+filePath);
+ console.log("Saving file: "+filePath);
if(IOAPI.plugin.fileExists(filePath)) {
IOAPI.plugin.removeFile(filePath);
}
@@ -93,11 +93,11 @@ IOAPI.saveTextFile = function(filePath,content) {
}
IOAPI.listDirectory = function(dirPath) {
- console.debug("Listing directory: "+dirPath);
+ console.log("Listing directory: "+dirPath);
if(IOAPI.plugin.isDirectory(dirPath)) {
try {
var dirList = IOAPI.plugin.listFiles(dirPath);
- console.debug("Dir content: "+JSON.stringify(dirList));
+ console.log("Dir content: "+JSON.stringify(dirList));
UIAPI.PerspectiveManager.updateFileBrowserData(dirList);
} catch(ex) {
console.error("Directory listing failed "+ex);
@@ -108,7 +108,7 @@ IOAPI.listDirectory = function(dirPath) {
}
IOAPI.getSubdirs = function(dirPath) {
- console.debug("Getting subdirs: "+dirPath);
+ console.log("Getting subdirs: "+dirPath);
if(IOAPI.plugin.isDirectory(dirPath)) {
try {
var dirList = IOAPI.plugin.listFiles(dirPath);
@@ -134,30 +134,30 @@ IOAPI.getSubdirs = function(dirPath) {
}
IOAPI.deleteElement = function(path) {
- console.debug("Deleting: "+path);
+ console.log("Deleting: "+path);
// IOAPI.plugin.removeFile(path)
}
IOAPI.selectDirectory = function() {
// TODO implement selectDirectory
- console.debug("Select directory functionality not implemented on cordova yet!");
+ console.log("Select directory functionality not implemented on cordova yet!");
alert("Select directory functionality not implemented on cordova yet!")
}
IOAPI.selectFile = function() {
// TODO implement selectFile
- console.debug("Select file functionality not implemented on cordova yet!");
+ console.log("Select file functionality not implemented on cordova yet!");
alert("Select file functionality not implemented on cordova yet!")
}
IOAPI.openDirectory = function(dirPath) {
// TODO implement openDirectory
- console.debug("Open directory functionality not implemented on cordova yet!");
+ console.log("Open directory functionality not implemented on cordova yet!");
alert("Open directory functionality not implemented on cordova yet!");
}
IOAPI.openExtensionsDirectory = function() {
// TODO implement openExtensionsDirectory
- console.debug("Open extensions directory functionality not implemented on cordova yet!");
+ console.log("Open extensions directory functionality not implemented on cordova yet!");
alert("Open extensions directory functionality not implemented on cordova yet!");
}
\ No newline at end of file
diff --git a/data/js/ioapi.mozilla.js b/data/js/ioapi.mozilla.js
index 16060ad0c..3367e9da9 100644
--- a/data/js/ioapi.mozilla.js
+++ b/data/js/ioapi.mozilla.js
@@ -6,12 +6,12 @@
define(function(require, exports, module) {
"use strict";
-console.debug("Loading ioapi.mozilla.js..");
+console.log("Loading ioapi.mozilla.js..");
var TSCORE = require("tscore");
exports.saveSettings = function(content) {
- console.debug("Saving setting...");
+ console.log("Saving setting...");
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -22,7 +22,7 @@ exports.saveSettings = function(content) {
}
exports.loadSettings = function() {
- console.debug("Loading setting from firefox preferences...");
+ console.log("Loading setting from firefox preferences...");
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -32,7 +32,7 @@ exports.loadSettings = function() {
}
exports.createDirectory = function(dirPath) {
- console.debug("Directory "+dirPath+" created.");
+ console.log("Directory "+dirPath+" created.");
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -43,7 +43,7 @@ exports.createDirectory = function(dirPath) {
}
exports.loadTextFile = function(filePath) {
- console.debug("Loading file: "+filePath);
+ console.log("Loading file: "+filePath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -54,7 +54,7 @@ exports.loadTextFile = function(filePath) {
}
exports.renameFile = function(filePath, newFilePath) {
- console.debug("Renaming "+filePath+" to "+newFilePath);
+ console.log("Renaming "+filePath+" to "+newFilePath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -66,7 +66,7 @@ exports.renameFile = function(filePath, newFilePath) {
}
exports.saveTextFile = function(filePath,content) {
- console.debug("Saving file: "+filePath);
+ console.log("Saving file: "+filePath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -78,7 +78,7 @@ exports.saveTextFile = function(filePath,content) {
}
exports.listDirectory = function(dirPath) {
- console.debug("Listing directory: "+dirPath);
+ console.log("Listing directory: "+dirPath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -89,7 +89,7 @@ exports.listDirectory = function(dirPath) {
}
exports.getSubdirs = function(dirPath) {
- console.debug("Getting subdirs: "+dirPath);
+ console.log("Getting subdirs: "+dirPath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -100,7 +100,7 @@ exports.getSubdirs = function(dirPath) {
}
exports.deleteElement = function(path) {
- console.debug("Deleting: "+path);
+ console.log("Deleting: "+path);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -111,7 +111,7 @@ exports.deleteElement = function(path) {
}
exports.selectDirectory = function() {
- console.debug("Selecting directory...");
+ console.log("Selecting directory...");
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
"command": "selectDirectory",
@@ -120,7 +120,7 @@ exports.selectDirectory = function() {
}
exports.selectFile = function() {
- console.debug("Selecting file...");
+ console.log("Selecting file...");
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
"command": "selectFile"
@@ -129,7 +129,7 @@ exports.selectFile = function() {
}
exports.openDirectory = function(dirPath) {
- console.debug("Opening directory: "+dirPath);
+ console.log("Opening directory: "+dirPath);
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
"command": "openDirectory",
@@ -139,7 +139,7 @@ exports.openDirectory = function(dirPath) {
}
exports.openExtensionsDirectory = function() {
- console.debug("Opening extensions directory...");
+ console.log("Opening extensions directory...");
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
"command": "openExtensionsDirectory"
@@ -148,7 +148,7 @@ exports.openExtensionsDirectory = function() {
}
exports.createDirectoryIndex = function(dirPath) {
- console.debug("Creating directory index for: "+dirPath);
+ console.log("Creating directory index for: "+dirPath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -159,7 +159,7 @@ exports.createDirectoryIndex = function(dirPath) {
}
exports.createDirectoryTree = function(dirPath) {
- console.debug("Creating directory tree for: "+dirPath);
+ console.log("Creating directory tree for: "+dirPath);
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
@@ -170,7 +170,7 @@ exports.createDirectoryTree = function(dirPath) {
}
exports.checkNewVersion = function() {
- console.debug("Checking for new version...");
+ console.log("Checking for new version...");
TSCORE.showLoadingAnimation();
var event = document.createEvent('CustomEvent');
event.initCustomEvent("addon-message", true, true, {"detail":{
diff --git a/data/js/ioapi.mozilla.receiver.js b/data/js/ioapi.mozilla.receiver.js
index 8906f1514..733a230e7 100644
--- a/data/js/ioapi.mozilla.receiver.js
+++ b/data/js/ioapi.mozilla.receiver.js
@@ -5,36 +5,36 @@
define(function(require, exports, module) {
"use strict";
-console.debug("Loading mozilla's messaging ..");
+console.log("Loading mozilla's messaging ..");
var TSCORE = require("tscore");
document.documentElement.addEventListener("addon-message1", function(event) {
- console.debug("Message received in page script from content script: "); //+JSON.stringify(event.detail));
+ console.log("Message received in page script from content script: "); //+JSON.stringify(event.detail));
TSCORE.hideLoadingAnimation();
var message = event.detail;
switch (message.command) {
case "loadSettings":
if(message.success) {
try {
- console.debug("Loading settings...: "+JSON.stringify(message.content));
+ console.log("Loading settings...: "+JSON.stringify(message.content));
TSCORE.Config.updateSettingMozillaPreferences(message.content);
TSCORE.initFavorites();
TSCORE.generateTagGroups();
} catch (ex) {
- console.debug("Exception while getting setting from firefox failed "+ex)
+ console.log("Exception while getting setting from firefox failed "+ex)
}
} else {
- console.debug("Getting setting from firefox failed")
+ console.log("Getting setting from firefox failed")
}
break;
case "saveSettings":
if(message.success) {
- console.debug("Saving setting as native mozilla preference successfull!")
+ console.log("Saving setting as native mozilla preference successfull!")
} else {
- console.debug("Saving setting as native mozilla preference failed!")
+ console.log("Saving setting as native mozilla preference failed!")
}
break;
case "rename":
@@ -85,7 +85,7 @@ console.debug("Loading mozilla's messaging ..");
break;
case "indexDirectory":
if(message.success){
- //console.debug("Directory Index: "+JSON.stringify(message.content));
+ //console.log("Directory Index: "+JSON.stringify(message.content));
TSCORE.PerspectiveManager.updateFileBrowserData(message.content);
} else {
TSCORE.updateLogger("Indexing directory failed");
@@ -93,7 +93,7 @@ console.debug("Loading mozilla's messaging ..");
break;
case "createDirectoryTree":
if(message.success){
- console.debug("Directory tree: "+JSON.stringify(message.content));
+ console.log("Directory tree: "+JSON.stringify(message.content));
TSCORE.PerspectiveManager.updateTreeData(message.content);
} else {
TSCORE.updateLogger("Indexing directory failed");
diff --git a/data/js/options.ui.js b/data/js/options.ui.js
index 02f730489..f4d93b33a 100644
--- a/data/js/options.ui.js
+++ b/data/js/options.ui.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading options.ui.js ...");
+ console.log("Loading options.ui.js ...");
var TSCORE = require("tscore");
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index 6ac75731c..6bc1e565b 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
-console.debug("Loading perspective.manager.js");
+console.log("Loading perspective.manager.js");
var perspectives = undefined;
@@ -46,7 +46,7 @@ var initViews = function () {
//try {
perspective.init();
//} catch(e) {
- // console.debug("Error while executing 'init' on "+perspectives[i].ID+" - "+e);
+ // console.log("Error while executing 'init' on "+perspectives[i].ID+" - "+e);
//}
});
//}
@@ -56,7 +56,7 @@ var initViews = function () {
}
var initViewsUI = function(perspective) {
- console.debug("Init UI for "+perspective.ID);
+ console.log("Init UI for "+perspective.ID);
// Creating perspective's toolbar
$("#viewToolbars").append($("<div>", {
@@ -93,7 +93,7 @@ var getNextFile = function (filePath) {
try {
return perspectives[i].getNextFile(filePath);
} catch(e) {
- console.debug("Error while executing 'getNextFile' on "+perspectives[i].ID+" "+e);
+ console.log("Error while executing 'getNextFile' on "+perspectives[i].ID+" "+e);
}
}
}
@@ -105,7 +105,7 @@ var getPrevFile = function (filePath) {
try {
return perspectives[i].getPrevFile(filePath);
} catch(e) {
- console.debug("Error while executing 'getPrevFile' on "+perspectives[i].ID+" "+e);
+ console.log("Error while executing 'getPrevFile' on "+perspectives[i].ID+" "+e);
}
}
}
@@ -116,13 +116,13 @@ var updateTreeData = function (treeData) {
try {
perspectives[i].updateTreeData(treeData);
} catch(e) {
- console.debug("Error while executing 'updateTreeData' on "+perspectives[i].ID+" "+e);
+ console.log("Error while executing 'updateTreeData' on "+perspectives[i].ID+" "+e);
}
}
}
var updateFileBrowserData = function(dirList) {
- console.debug("Updating the file browser data...");
+ console.log("Updating the file browser data...");
TSCORE.fileList = [];
var tags = undefined;
@@ -161,7 +161,7 @@ var refreshFileListContainer = function() {
}
var changeView = function (viewType) {
- console.debug("Change to "+viewType+" view.");
+ console.log("Change to "+viewType+" view.");
TSCORE.showLoadingAnimation();
//Setting the current view
@@ -205,7 +205,7 @@ var clearSelectedFiles = function () {
try {
perspectives[i].clearSelectedFiles();
} catch(e) {
- console.debug("Error while executing 'clearSelectedFiles' on "+perspectives[i].ID)
+ console.log("Error while executing 'clearSelectedFiles' on "+perspectives[i].ID)
}
}
}
@@ -215,7 +215,7 @@ var setFileFilter = function (filter) {
try {
perspectives[i].setFileFilter(filter);
} catch(e) {
- console.debug("Error while executing 'setFileFilter' on "+perspectives[i].ID)
+ console.log("Error while executing 'setFileFilter' on "+perspectives[i].ID)
}
}
}
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index 01dcfc5d7..fb2fbc57b 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading settings.api.js..");
+ console.log("Loading settings.api.js..");
var IOAPI = require("tsioapi");
@@ -137,7 +137,7 @@ define(function(require, exports, module) {
var upgradeSettings = function() {
if(exports.Settings["appBuild"].localeCompare(exports.DefaultSettings["appBuild"]) < 0) {
- console.debug("Upgrading settings");
+ console.log("Upgrading settings");
exports.Settings["appVersion"] = exports.DefaultSettings["appVersion"];
exports.Settings["appBuild"] = exports.DefaultSettings["appBuild"];
getPerspectiveExtensions();
@@ -258,9 +258,9 @@ define(function(require, exports, module) {
var findTag = function(tagName, tagGroupKey) {
for(var i=0; i < exports.Settings["tagGroups"].length; i++) {
if(exports.Settings["tagGroups"][i].key == tagGroupKey) {
- // console.debug("Current taggroup "+exports.Settings["tagGroups"][i].key);
+ // console.log("Current taggroup "+exports.Settings["tagGroups"][i].key);
for(var j=0; j < exports.Settings["tagGroups"][i]["children"].length; j++) {
- // console.debug("Current tagname "+exports.Settings["tagGroups"][i]["children"][j].title);
+ // console.log("Current tagname "+exports.Settings["tagGroups"][i]["children"][j].title);
if(exports.Settings["tagGroups"][i]["children"][j].title == tagName) {
return exports.Settings["tagGroups"][i]["children"][j];
}
@@ -273,9 +273,9 @@ define(function(require, exports, module) {
var getAllTags = function() {
var allTags = [];
for(var i=0; i < exports.Settings["tagGroups"].length; i++) {
- // console.debug("Current taggroup "+exports.Settings["tagGroups"][i].key);
+ // console.log("Current taggroup "+exports.Settings["tagGroups"][i].key);
for(var j=0; j < exports.Settings["tagGroups"][i]["children"].length; j++) {
- // console.debug("Current tagname "+exports.Settings["tagGroups"][i]["children"][j].title);
+ // console.log("Current tagname "+exports.Settings["tagGroups"][i]["children"][j].title);
if(exports.Settings["tagGroups"][i]["children"][j].type == "plain") {
allTags.push(exports.Settings["tagGroups"][i]["children"][j].title);
}
@@ -320,7 +320,7 @@ define(function(require, exports, module) {
var deleteTagGroup = function(tagData) {
for(var i=0; i < exports.Settings["tagGroups"].length; i++) {
if(exports.Settings["tagGroups"][i].key == tagData.key) {
- console.debug("Deleting taggroup "+exports.Settings["tagGroups"][i].key);
+ console.log("Deleting taggroup "+exports.Settings["tagGroups"][i].key);
exports.Settings["tagGroups"].splice(i, 1);
break;
}
@@ -369,10 +369,10 @@ define(function(require, exports, module) {
newTagModel.title = newTagName;
exports.Settings["tagGroups"].forEach(function (value, index) {
if(value.key == tagData.key) {
- console.debug("Creating tag: "+JSON.stringify(newTagModel)+" with parent: "+tagData.key);
+ console.log("Creating tag: "+JSON.stringify(newTagModel)+" with parent: "+tagData.key);
value["children"].forEach(function (value, index) {
if(value.title == newTagName) {
- console.debug("Tag with the same name already exist in this group");
+ console.log("Tag with the same name already exist in this group");
return false;
}
});
@@ -403,7 +403,7 @@ define(function(require, exports, module) {
}
newTagGroupModel.title = tagGroupName;
newTagGroupModel.key = tagGroupKey;
- console.debug("Creating taggroup: "+JSON.stringify(newTagGroupModel)+" with key: "+tagGroupKey);
+ console.log("Creating taggroup: "+JSON.stringify(newTagGroupModel)+" with key: "+tagGroupKey);
exports.Settings["tagGroups"].push(newTagGroupModel);
saveSettings();
}
@@ -413,7 +413,7 @@ define(function(require, exports, module) {
newTagGroupModel.title = tagGroupName;
//newTagGroupModel.children = [];
newTagGroupModel.key = ""+getRandomInt(10000,99999);
- console.debug("Creating taggroup: "+JSON.stringify(newTagGroupModel)+" with key: "+newTagGroupModel.key);
+ console.log("Creating taggroup: "+JSON.stringify(newTagGroupModel)+" with key: "+newTagGroupModel.key);
exports.Settings["tagGroups"].push(newTagGroupModel);
saveSettings();
}
@@ -454,9 +454,9 @@ define(function(require, exports, module) {
var deleteFavorite = function(name) {
for(var i=0; i < exports.Settings["tagspacesList"].length; i++) {
- console.debug("Traversing favorite "+exports.Settings["tagspacesList"][i].name+" searching for "+name);
+ console.log("Traversing favorite "+exports.Settings["tagspacesList"][i].name+" searching for "+name);
if(exports.Settings["tagspacesList"][i].name == name) {
- console.debug("Deleting favorite "+exports.Settings["tagspacesList"][i].name);
+ console.log("Deleting favorite "+exports.Settings["tagspacesList"][i].name);
exports.Settings["tagspacesList"].splice(i, 1);
break;
}
@@ -468,10 +468,10 @@ define(function(require, exports, module) {
var tmpSettings = JSON.parse(settings);
if(tmpSettings != null) {
exports.Settings = tmpSettings;
- console.debug("Settings loaded from firefox preferences: "+tmpSettings);
+ console.log("Settings loaded from firefox preferences: "+tmpSettings);
} else {
exports.Settings = exports.DefaultSettings;
- console.debug('Default settings loaded(Firefox)!');
+ console.log('Default settings loaded(Firefox)!');
}
saveSettings();
}
@@ -479,7 +479,7 @@ define(function(require, exports, module) {
var loadSettingsLocalStorage = function() {
try {
var tmpSettings = JSON.parse(localStorage.getItem('tagSpacesSettings'));
- //console.debug("Settings: "+JSON.stringify(tmpSettings));
+ //console.log("Settings: "+JSON.stringify(tmpSettings));
if(tmpSettings!=null) {
exports.Settings = tmpSettings;
} else {
@@ -487,9 +487,9 @@ define(function(require, exports, module) {
// the application runs for the first time.
firstRun = true;
}
- console.debug("Loaded settings from local storage: "+JSON.stringify(exports.Settings));
+ console.log("Loaded settings from local storage: "+JSON.stringify(exports.Settings));
} catch(ex) {
- console.debug("Loading settings from local storage failed due exception: "+ex);
+ console.log("Loading settings from local storage failed due exception: "+ex);
}
}
@@ -503,7 +503,7 @@ define(function(require, exports, module) {
IOAPI.saveSettings(JSON.stringify(exports.Settings));
}
- console.debug('Tagspace Settings Saved!');
+ console.log('Tagspace Settings Saved!');
}
var getRandomInt = function(min, max) {
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index 32bdcc0ab..99fef4cb1 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading tags.ui.js...");
+ console.log("Loading tags.ui.js...");
var TSCORE = require("tscore");
@@ -114,7 +114,7 @@ define(function(require, exports, module) {
}
function generateTagGroups() {
- console.debug("Generating TagGroups...");
+ console.log("Generating TagGroups...");
$("#tagGroups").empty();
$("#tagGroups").addClass("accordion");
if(TSCORE.Config.Settings["tagGroups"].length < 1) {
@@ -182,7 +182,7 @@ define(function(require, exports, module) {
.dropdown( 'attach' , '#tagGroupMenu' )
.append("<b class='icon-reorder'></b>")
.click( function(event) {
- //console.debug("Clicked in taggroup setting");
+ //console.log("Clicked in taggroup setting");
TSCORE.selectedTag = $(this).attr("tag");
TSCORE.selectedTagData = TSCORE.Config.getTagGroupData($(this).attr("key"));
TSCORE.selectedTagData.parentKey = undefined;
@@ -239,7 +239,7 @@ define(function(require, exports, module) {
// Helper function user by basic and search views
function generateTagButtons(commaSeparatedTags, fileExtension, fileName, filePath) {
- console.debug("Creating tags...");
+ console.log("Creating tags...");
var tagString = ""+commaSeparatedTags;
var wrapper = $('<span>');
if(filePath == undefined) {
@@ -296,7 +296,7 @@ define(function(require, exports, module) {
}
function showAddTagsDialog() {
- console.debug("Adding tags...");
+ console.log("Adding tags...");
function split( val ) {
return val.split( /,\s*/ );
}
diff --git a/data/js/tagutils.js b/data/js/tagutils.js
index ca9947f63..139e23530 100644
--- a/data/js/tagutils.js
+++ b/data/js/tagutils.js
@@ -4,7 +4,7 @@
define(function(require, exports, module) {
"use strict";
- console.debug("Loading tagutils.js ...");
+ console.log("Loading tagutils.js ...");
var IOAPI = require("tsioapi");
@@ -33,7 +33,7 @@ define(function(require, exports, module) {
// TODO consider [qweq wqeqe].txt
function extractTitle(filePath) {
- console.debug("Extracting title from: "+filePath);
+ console.log("Extracting title from: "+filePath);
var fileName = extractFileName(filePath);
var beginTagContainer = fileName.indexOf(BEGIN_TAG_CONTAINER);
@@ -79,7 +79,7 @@ define(function(require, exports, module) {
}
function extractTags(filePath) {
- console.debug("Extracting tags from: "+filePath);
+ console.log("Extracting tags from: "+filePath);
var fileName = extractFileName(filePath);
@@ -87,7 +87,7 @@ define(function(require, exports, module) {
var beginTagContainer = fileName.indexOf(BEGIN_TAG_CONTAINER);
var endTagContainer = fileName.indexOf(END_TAG_CONTAINER);
if( ( beginTagContainer < 0 ) || ( endTagContainer < 0 ) || ( beginTagContainer >= endTagContainer ) ) {
- console.debug("Filename does not contains tags. Aborting extraction.");
+ console.log("Filename does not contains tags. Aborting extraction.");
return tags;
}
var tagContainer = fileName.slice(beginTagContainer+1,endTagContainer).trim();
@@ -100,13 +100,13 @@ define(function(require, exports, module) {
}
}
- console.debug("Extracting finished ");
+ console.log("Extracting finished ");
return cleanedTags;
}
function suggestTags(filePath) {
- console.debug("Suggesting tags for: "+filePath);
+ console.log("Suggesting tags for: "+filePath);
var fileName = extractFileName(filePath);
@@ -143,10 +143,10 @@ define(function(require, exports, module) {
tagsString = tagsString.trim();
tagsString += END_TAG_CONTAINER;
}
- console.debug("The tags string: "+tagsString);
+ console.log("The tags string: "+tagsString);
var fileExt = extractFileExtension(fileName);
- console.debug("Filename: "+fileName+" file extenstion: "+fileExt);
+ console.log("Filename: "+fileName+" file extenstion: "+fileExt);
// Assembling the new filename with the tags
var newFileName = "";
@@ -171,7 +171,7 @@ define(function(require, exports, module) {
}
function writeTagsToFile(filePath, tags) {
- console.debug("Add the tags to: "+filePath);
+ console.log("Add the tags to: "+filePath);
var fileName = extractFileName(filePath);
@@ -193,7 +193,7 @@ define(function(require, exports, module) {
}
function addTag(filePathArray, tagArray) {
- console.debug("Adding tags to files");
+ console.log("Adding tags to files");
for (var i=0; i < filePathArray.length; i++) {
writeTagsToFile(filePathArray[i], tagArray);
@@ -202,7 +202,7 @@ define(function(require, exports, module) {
// Replaces a tag with a new one
function renameTag(filePath, oldTag, newTag) {
- console.debug("Rename tag for file: "+filePath);
+ console.log("Rename tag for file: "+filePath);
var fileName = extractFileName(filePath);
@@ -224,7 +224,7 @@ define(function(require, exports, module) {
}
function changeTitle(filePath, newTitle) {
- console.debug("Changing title for file: "+filePath);
+ console.log("Changing title for file: "+filePath);
var containingDirectoryPath = extractContainingDirectoryPath(filePath);
@@ -245,7 +245,7 @@ define(function(require, exports, module) {
// Removing a tag from a filename
function removeTag(filePath, tagName) {
- console.debug("Removing tag: "+tagName+" from "+filePath);
+ console.log("Removing tag: "+tagName+" from "+filePath);
var fileName = extractFileName(filePath);
diff --git a/data/loader.js b/data/loader.js
index bd79d0c0f..c5fd0be38 100644
--- a/data/loader.js
+++ b/data/loader.js
@@ -11,7 +11,7 @@ if (PRODUCTION == "true") {
console = console || {};
console.log = function(){};
console.error = function(){};
- console.debug = function(){};
+ console.log = function(){};
}
// Temporal hacks
@@ -19,7 +19,7 @@ var isFirefox = 'MozBoxSizing' in document.documentElement.style;
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
var isChrome = !isSafari && 'WebkitTransform' in document.documentElement.style;
-console.debug("Loading Loader 4 Firefox: "+isFirefox+" | Chrome: "+isChrome);
+console.log("Loading Loader 4 Firefox: "+isFirefox+" | Chrome: "+isChrome);
// Setting up the IO functionality according to the platform
var IO_JS = undefined;
@@ -27,8 +27,8 @@ if( isFirefox ) {
IO_JS = "js/ioapi.mozilla";
} else if ( isChrome ) {
IO_JS = "js/ioapi.chrome";
-} else if ( isSafari ) {
- // TODO safari io handler needed
+} else {
+ // TODO safari and ie io handler needed
IO_JS = "js/ioapi.chrome";
}
diff --git a/data/manifest.json b/data/manifest.json
index 2325211dc..1c298c312 100644
--- a/data/manifest.json
+++ b/data/manifest.json
@@ -1,6 +1,6 @@
{
"name": "TagSpaces",
- "version": "1.4.1355",
+ "version": "1.4.1359",
"manifest_version": 2,
"description": "TagSpaces Explorer",
"icons": {
diff --git a/lib/main.js b/lib/main.js
index dd43c5ddd..b8e8affcd 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012 The Tagspaces Authors. All rights reserved.
+/* 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 LICENSE file. */
@@ -11,7 +11,7 @@ if (PRODUCTION == "true") {
console = console || {};
console.log = function(){};
console.error = function(){};
- console.debug = function(){};
+ console.log = function(){};
}
// Import the needed APIs
@@ -33,13 +33,13 @@ exports.main = function(options, callbacks) {
include: data.url("index.html"),
contentScript: ''+
'self.on("message", function(message) {'+
- 'console.debug("Message received in content script from addon: "+JSON.stringify(message));'+
+ 'console.log("Message received in content script from addon: "+JSON.stringify(message));'+
'var event = document.createEvent("CustomEvent");'+
'event.initCustomEvent("addon-message1", true, true, message);'+
'document.documentElement.dispatchEvent(event); '+
'}); '+
'document.documentElement.addEventListener("addon-message", function(event) {'+
- 'console.debug("Message received from page script in content script "+JSON.stringify(event.detail));'+
+ 'console.log("Message received from page script in content script "+JSON.stringify(event.detail));'+
'self.postMessage(event.detail);'+
'}, false);'+
'',
@@ -147,7 +147,7 @@ function checkNewVersion(worker) {
"content": response.text,
"success": true
});
- console.debug("Loading settings successful!");
+ console.log("Loading settings successful!");
}
}).get();
} catch(ex) {
@@ -160,7 +160,7 @@ function checkNewVersion(worker) {
}
function handleMessage(msg, worker) {
- console.debug("Message in main.js: "+JSON.stringify(msg)+" from tab "+worker.tab.title);
+ console.log("Message in main.js: "+JSON.stringify(msg)+" from tab "+worker.tab.title);
//console.log("Thumbnail: "+worker.tab.getThumbnail());
switch (msg.detail.command) {
case "loadSettings":
diff --git a/lib/settings.js b/lib/settings.js
index dd1638aee..0725852bd 100644
--- a/lib/settings.js
+++ b/lib/settings.js
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012 The Tagspaces Authors. All rights reserved.
+/* 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 LICENSE file. */
@@ -21,16 +21,16 @@ function get(field) {
exports.loadSettings = function loadSettings(worker) {
- console.debug("Loading setting...");
+ console.log("Loading setting...");
try {
var content = get("settings");
- console.debug("Content: "+content);
+ console.log("Content: "+content);
worker.postMessage({
"command": "loadSettings",
"content": content,
"success": true
});
- console.debug("Loading settings successful!");
+ console.log("Loading settings successful!");
} catch(ex) {
worker.postMessage({
"command": "loadSettings",
@@ -41,14 +41,14 @@ exports.loadSettings = function loadSettings(worker) {
}
exports.saveSettings = function saveSettings(content, worker) {
- console.debug("Saving setting...");
+ console.log("Saving setting...");
try {
save("settings", content)
worker.postMessage({
"command": "saveSettings",
"success": true
});
- console.debug("Saving settings successful!");
+ console.log("Saving settings successful!");
} catch(ex) {
worker.postMessage({
"command": "saveSettings",
diff --git a/package.json b/package.json
index 0de5b9799..3de5a7c08 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "tagspaces",
"license": "AGPL 3.0",
"author": "Ugg Rock",
- "version": "1.4.1355",
+ "version": "1.4.1359",
"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.rdf
index 207d3a07f..c6f4422a1 100644
--- a/update.rdf
+++ b/update.rdf
@@ -7,13 +7,13 @@
<r:Seq>
<r:li>
<r:Description>
- <version>1.4.1355</version>
+ <version>1.4.1359</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>16.0</minVersion>
<maxVersion>*</maxVersion>
- <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1355.xpi</updateLink>
+ <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1359.xpi</updateLink>
<updateInfoURL>http://tagspaces.com/releases/1.4/updateInfo.xml</updateInfoURL>
</r:Description>
</targetApplication>