TagSpaces is an offline, open source, document manager with tagging support
Optimizing of the hint by the first start of the application
Ilianeac31b553758
diff --git a/data/assets/tagspaces.css b/data/assets/tagspaces.cssindex b07c6e506..f497d60f1 100644--- a/data/assets/tagspaces.css+++ b/data/assets/tagspaces.css@@ -696,13 +696,6 @@ input a.resetFilter {border-bottom-color: white;}-.createFirstLocation {- border:1px solid #00AE00;- border-radius:5px;- border-color:#00AE00;- box-shadow:0 0 10px #00AE00;-}-.simplecolorpicker.fontawesome span.color[data-selected]:after {font-family: 'FontAwesome';-webkit-font-smoothing: antialiased;diff --git a/data/index.html b/data/index.htmlindex 6145141b2..1c600ef16 100644--- a/data/index.html+++ b/data/index.html@@ -107,7 +107,7 @@ can be found in the LICENSE file.</div><div class="btn-toolbar" style="width: 100%"><div class="btn-group" style="width: 99%">- <button type="button" class="btn btn-default" style="width: 16%; title="Connect new location" text-align: center; min-width: 40px;" id="createNewLocation">+ <button type="button" class="btn btn-default" style="width: 16%; title="Connect new location" text-align: center; min-width: 40px;" data-placement="right" data-original-title="Start using TagSpaces by creating a new location!" id="createNewLocation"><i class="glyphicon glyphicon-plus-sign"></i></button><button type="button" class="btn btn-default" style="width: 69%" id="locationName" data-toggle="dropdown">Choose Location</button>@@ -259,7 +259,7 @@ can be found in the LICENSE file.<h4 class="modal-title" id="myModalLabel1">About TagSpaces</h4></div><div class="modal-body">- <iframe id="aboutIframe" style="width: 100%; height: 300px; border: 0px;" src="about.html"></iframe>+ <iframe id="aboutIframe" style="width: 100%; height: 350px; border: 0px;" src="about.html"></iframe></div><div class="modal-footer"><!--div class="btn-group"></div-->diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 4fcb1d893..9553fd3e0 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -81,6 +81,13 @@ define(function(require, exports, module) {initKeyBindings();$( "#loading" ).hide();+ // Show start hint by no locations+ if(tsSettings.Settings.tagspacesList.length < 1 ) {+ $( "#createNewLocation" ).tooltip( "show" );+ $( "#locationName" ).prop('disabled', true);+ $( "#selectLocation" ).prop('disabled', true);+ }+console.log("Layout initialized");});diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex fc84f94dd..b67706158 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -142,16 +142,6 @@ define(function(require, exports, module) {var initUI = function() {$("#appVersion").text(TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"]+"beta");$("#appVersion").attr("title","BuildID: "+TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"]+"."+TSCORE.Config.DefaultSettings["appBuildID"]);-- // Show start hint- if(TSCORE.Config.Settings.tagspacesList.length < 1 ) {- $( "#createNewLocation" ).attr("title", "Start using TagSpaces by creating a new location.");- $( "#createNewLocation" ).addClass("createFirstLocation");- $( "#createNewLocation" ).tooltip( { placement: "bottom" } );- $( "#createNewLocation" ).tooltip( "show" );- $( "#locationName" ).prop('disabled', true);- $( "#selectLocation" ).prop('disabled', true);- }platformTuning();diff --git a/data/js/directories.ui.js b/data/js/directories.ui.jsindex 5e649b293..bf191b1cc 100644--- a/data/js/directories.ui.js+++ b/data/js/directories.ui.js@@ -409,7 +409,6 @@ define(function(require, exports, module) {// Enable the UI behavior by not empty location list$( "#createNewLocation" ).attr("title", "Connect New Location");- $( "#createNewLocation" ).removeClass("createFirstLocation");$( "#createNewLocation" ).tooltip( "destroy" );$( "#locationName" ).prop('disabled', false);$( "#selectLocation" ).prop('disabled', false);