TagSpaces is an offline, open source, document manager with tagging support
cleaning up
uggrock3e42dfd9e2db
diff --git a/data/index.html b/data/index.htmlindex 45610d5ad..1cb0f6c9e 100644--- a/data/index.html+++ b/data/index.html@@ -200,7 +200,7 @@<i class="fa fa-arrow-right fa-lg"></i></button><div class="flexMaxWidth">- <div id="loadingAnimation" class="">+ <div id="loadingAnimation"><div class="spinner"><div class="bounce1"></div><div class="bounce2"></div>diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 6a0a7be15..e70d55fe8 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -44,7 +44,7 @@ define(function(require, exports, module) {if (tsSettings.Settings === undefined && isFirefox) {window.setTimeout(tsIOApi.loadSettings, 1000);// executes initUI and updateSettingMozillaPreferences by success- console.log('Loading setting with from mozilla pref execured with delay...');+ console.log('Loading setting with from mozilla pref executed with delay...');}// If still nothing found, loading the default setting from the application's javascript// This is usually the case by a new installationdiff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex a738f84ea..67da4b4c4 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -8,60 +8,7 @@ define(function(require, exports, module) {var TSCORE = require('tscore');var TSPRO = require("tspro");- var initPerspectivesOLD = function() {- perspectives = [];- $('#perspectiveSwitcher').empty();- $('#viewToolbars').empty();- $('#viewContainers').empty();- $('#viewFooters').empty();- initWelcomeScreen();- var extensions = TSCORE.Config.getPerspectives();- for (var i = 0; i < extensions.length; i++) {- var extPath = TSCORE.Config.getExtensionPath() + '/' + extensions[i].id + '/extension.js';- require([extPath], function(perspective) {- perspectives.push(perspective);- try {- // Creating perspective's toolbar- $('#viewToolbars').append($('<div>', {- id: perspective.ID + 'Toolbar',- class: 'btn-toolbar'- }).hide());- // Creating perspective's container- $('#viewContainers').append($('<div>', {- id: perspective.ID + 'Container',- style: 'width: 100%; height: 100%'- }).hide());- // Creating perspective's footer- $('#viewFooters').append($('<div>', {- id: perspective.ID + 'Footer'- }).hide());- perspective.init();- } catch (e) {- console.log('Error while executing \'init\' on ' + perspectives[i].ID + ' - ' + e);- } finally {- if (perspectives.length === extensions.length) {- initPerspectiveSwitcher();- // Opening last saved location by the start of the application (not in firefox)- var lastLocation = TSCORE.Config.getDefaultLocation();- if (lastLocation !== undefined && lastLocation.length >= 1 && !isFirefox) {- TSCORE.openLocation(lastLocation);- TSCORE.IO.checkAccessFileURLAllowed();- var evt = TSCORE.createDocumentEvent("initApp");- TSCORE.fireDocumentEvent(evt);- }- $('#loading').hide();- if (isNode) {- TSCORE.IO.showMainWindow();- }-- }- }- }); // jshint ignore:line- }- };-function initPerspective(extPath) {-return new Promise(function(resolve, reject) {require([extPath], function(perspective) {perspectives.push(perspective);@@ -88,7 +35,6 @@ define(function(require, exports, module) {}function initPerspectives() {-perspectives = [];$('#viewSwitcher').empty();$('#viewToolbars').empty();@@ -115,6 +61,7 @@ define(function(require, exports, module) {TSCORE.IO.checkAccessFileURLAllowed();var evt = TSCORE.createDocumentEvent("initApp");TSCORE.fireDocumentEvent(evt);+ $("#viewContainers").removeClass("appBackgroundTile");}$('#loading').hide();if (isNode) {