TagSpaces is an offline, open source, document manager with tagging support
Initially disabling all buttons in the perspectives
Ilianc39e01ab343e
diff --git a/data/assets/tagspaces.css b/data/assets/tagspaces.cssindex 9fff84582..547b818c0 100644--- a/data/assets/tagspaces.css+++ b/data/assets/tagspaces.css@@ -16,7 +16,8 @@ html, body {/* Removes the selection border on ui elements on android */* {-webkit-tap-highlight-color: rgba(0,0,0,0);-/* -webkit-touch-callout: none;+ -webkit-touch-callout: none;+/*-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;@@ -168,23 +169,20 @@ user-select: none;margin-top: 5px;}-table .fileTitle {font-size: 14px;color: #333333;}-/*.titleInFileTile {- font-size: 1.3em;+ font-size: 13px;line-height: 120%;color: #333333;z-index: 99;position: absolute;left: 5px;top: 5px;-}*/-+}.tagsInFileTile {position: absolute;@@ -251,12 +249,10 @@ table .fileTitle {display: inline-block;}-#dialogAbout {width: 600px;}-li hr {height: 0px;border: 0px;@@ -305,8 +301,6 @@ li hr {/*.roundedTagCorners; */}--#container {height: 100%;margin: 0 auto;@@ -691,4 +685,4 @@ input a.resetFilter {margin-right: 1px;margin-left: 1px;-}+}\ No newline at end of filediff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.jsindex 4091fba57..2c9cf5922 100644--- a/data/ext/perspectiveGrid/perspectiveUI.js+++ b/data/ext/perspectiveGrid/perspectiveUI.js@@ -250,7 +250,10 @@ console.log("Loading UI for perspectiveDefault");return false;});- this.initFileGroupingMenu();+ this.initFileGroupingMenu();++ // Disable all buttons+ this.viewToolbar.find(".btn").prop('disabled', true);};ExtUI.prototype.switchThumbnailSize = function() {@@ -568,6 +571,12 @@ console.log("Loading UI for perspectiveDefault");}});});++ // Enable all buttons+ this.viewToolbar.find(".btn").prop('disabled', false);+ // Disable certain buttons again+ $("#"+this.extensionID+"IncreaseThumbsButton" ).prop('disabled', true);+ $("#"+this.extensionID+"TagButton" ).prop('disabled', true);this.refreshThumbnails();TSCORE.hideLoadingAnimation();diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.jsindex d480baffd..8662192aa 100644--- a/data/ext/perspectiveList/perspectiveUI.js+++ b/data/ext/perspectiveList/perspectiveUI.js@@ -51,30 +51,29 @@ console.log("Loading UI for perspectiveList");TSCORE.selectedFiles.push($(this).find(".fileTitleButton").attr("filepath"));self.handleElementActivation();});- $(this).find("i").removeClass("fa fa-square-o");- $(this).find("i").addClass("fa fa-check-square-o");+ $(this).find("i")+ .removeClass("fa-square-o")+ .addClass("fa-check-square-o");} else {TSCORE.PerspectiveManager.clearSelectedFiles();- $(this).find("i").removeClass("fa fa-check-square-o");- $(this).find("i").addClass("fa fa-square-o");+ $(this).find("i")+ .removeClass("fa fa-check-square-o")+ .addClass("fa fa-square-o");}});$("#"+this.extensionID+"CreateFileButton")- .prop('disabled', true).click(function() {TSCORE.showFileCreateDialog();});$("#"+this.extensionID+"IncludeSubDirsButton")- .prop('disabled', true).click(function() {$( this ).prop('disabled', true);TSCORE.IO.createDirectoryIndex(TSCORE.currentPath);});$("#"+this.extensionID+"TagButton")- .prop('disabled', true).click(function() {TSCORE.showAddTagsDialog();});@@ -99,6 +98,10 @@ console.log("Loading UI for perspectiveList");.click(function() {self.toggleTags();});++ // Disabling all buttons by no data+ this.viewToolbar.find(".btn").prop('disabled', true);+// Init Toolbar END// Init Container@@ -296,9 +299,11 @@ console.log("Loading UI for perspectiveList");}});- //$("#"+this.extensionID+"FileTable_wrapper").show();- $("#"+this.extensionID+"CreateFileButton" ).prop('disabled', false);- $("#"+this.extensionID+"IncludeSubDirsButton" ).prop('disabled', false);+ // Enable all buttons+ this.viewToolbar.find(".btn").prop('disabled', false);+ // Disable certain buttons again+ $("#"+this.extensionID+"IncreaseThumbsButton" ).prop('disabled', true);+ $("#"+this.extensionID+"TagButton" ).prop('disabled', true);this.refreshThumbnails();TSCORE.hideLoadingAnimation();diff --git a/data/ext/perspectiveList/toolbar.html b/data/ext/perspectiveList/toolbar.htmlindex b76a00339..c1fbac8cf 100644--- a/data/ext/perspectiveList/toolbar.html+++ b/data/ext/perspectiveList/toolbar.html@@ -14,9 +14,7 @@<button class="btn btn-default" title="Tag Selected Files" id="{{id}}TagButton"><i class="fa fa-tag"></i></button>-</div>-<div class="btn-group">- <button class="btn btn-default active" data-toggle="button" title="Toggle file thumbnails" id="{{id}}ShowTmbButton">+ <button class="btn btn-default" data-toggle="button" title="Toggle file thumbnails" id="{{id}}ShowTmbButton"><i class="fa fa-picture-o"></i></button><button class="btn btn-default" title="Increase Thumbnails Size" id="{{id}}IncreaseThumbsButton">@@ -27,7 +25,7 @@<button class="btn btn-default " title="Toggle File Details" id="{{id}}ShowFileDetailsButton"><i class="fa fa-list-alt"></i></button>- <button class="btn btn-default active" title="Toggle Tags" id="{{id}}ShowTagsButton">+ <!--button class="btn btn-default active" title="Toggle Tags" id="{{id}}ShowTagsButton"><i class="fa fa-tags"></i>- </button>+ </button--></div>\ No newline at end of file