TagSpaces is an offline, open source, document manager with tagging support
Switched to normal bootstrap buttons
uggrock5c1cd5169e85
diff --git a/data/ext/perspectiveDefault/perspectiveUI.js b/data/ext/perspectiveDefault/perspectiveUI.jsindex 645a1840f..947a0ec34 100644--- a/data/ext/perspectiveDefault/perspectiveUI.js+++ b/data/ext/perspectiveDefault/perspectiveUI.js@@ -53,7 +53,8 @@ console.debug("Loading UI for perspectiveDefault");var checkboxHTML = $('<legend>', {class: "checkbox",}).append($('<input>', {- type: "checkbox",+ type: "checkbox",+ class: "fileSelection",})).html();var titleHTML = $('<p>').append($('<span>', {@@ -85,9 +86,20 @@ console.debug("Loading UI for perspectiveDefault");style: "margin: 0px",id: this.extensionID+"Toolbar",})++ .append($("<a>", {+ class: "btn ",+ title: "Toggle Select All Files",+ id: this.extensionID+"ToogleSelectAll",+ })+ .click(function() {++ })+ .append( "<input type='checkbox' style='margin-top: -3px;'>" )+ ).append($("<a>", {- class: "btn btn-small disabled",+ class: "btn disabled",title: "Create new file",id: this.extensionID+"CreateFileButton",})@@ -99,7 +111,7 @@ console.debug("Loading UI for perspectiveDefault");).append($("<button>", {- class: "btn btn-small disabled",+ class: "btn disabled",title: "Show subfolders content. \nOn subfolder with many files, this step can take some time!",id: this.extensionID+"IncludeSubDirsButton",})@@ -112,7 +124,7 @@ console.debug("Loading UI for perspectiveDefault");).append($("<button>", {- class: "btn btn-small disabled",+ class: "btn disabled",title: "Tag Selected Files",id: this.extensionID+"TagButton",})@@ -124,7 +136,7 @@ console.debug("Loading UI for perspectiveDefault");).append($("<button>", {- class: "btn btn-small",+ class: "btn ","data-toggle": "button",title: "Toggle file thumbnails",id: this.extensionID+"ShowTmbButton",@@ -137,7 +149,7 @@ console.debug("Loading UI for perspectiveDefault");).append($("<button>", {- class: "btn btn-small",+ class: "btn ",title: "Increase Thumbnails Size",id: this.extensionID+"IncreaseThumbsButton",})@@ -155,7 +167,7 @@ console.debug("Loading UI for perspectiveDefault");"data-toggle": "buttons-checkbox",}).append($("<button>", {- class: "btn btn-small",+ class: "btn ",title: "Toggle File Details",id: this.extensionID+"ShowFileDetailsButton",})@@ -167,7 +179,7 @@ console.debug("Loading UI for perspectiveDefault");).append($("<button>", {- class: "btn btn-small",+ class: "btn ",title: "Toggle Tags",id: this.extensionID+"ShowTagsButton",})@@ -179,28 +191,35 @@ console.debug("Loading UI for perspectiveDefault");)) // end button group- // Filter- this.viewToolbar.append($("<input>", {- type: "search",- name: "fileFilter",- class: "pull-right input-medium",- id: this.extensionID+"FilterBox",- placeholder: "File Filter",- }))-- // Filter functionality- $("#"+this.extensionID+"FilterBox").keyup(function() {- self.fileTable.fnFilter(this.value);- console.debug("Filter to value: "+this.value);- });+ this.viewToolbar.append($("<div >", {+ class: "input-append pull-right",+ })+ // Filter+ .append($("<input>", {+ type: "text",+ //name: "fileFilter",+ class: "input-small",+ id: this.extensionID+"FilterBox",+ placeholder: "Filter",+ }).keyup(function() {+ self.fileTable.fnFilter(this.value);+ console.debug("Filter to value: "+this.value);+ }))++ .append($("<button>", {+ class: "btn",+ title: "Clear Filter",+ id: this.extensionID+"ClearFilterButton",+ })+ .append( $("<i>", { class: "icon-remove", }) )+ )+ ); // End Filter- $('#'+this.extensionID+"ClearFilterBox").click(function(evt) {+ $('#'+this.extensionID+"ClearFilterButton").click(function(evt) {evt.preventDefault();- $("#"+this.extensionID+"FilterBox").val('').focus();- self.fileTable.fnFilter( "" );- });-- // End Filter+ $("#"+self.extensionID+"FilterBox").val('').focus();+ self.fileTable.fnFilter( "" );+ });this.viewContainer.append($("<table>", {cellpadding: "0",@@ -223,7 +242,7 @@ console.debug("Loading UI for perspectiveDefault");"bInfo": false,"bAutoWidth": false,"aoColumns": [- { "sTitle": "<label class='checkbox'><input id='"+this.extensionID+"ToogleSelectAll' type='checkbox'>Title</label>", "sClass": "right" },+ { "sTitle": "Title", "sClass": "right" },{ "sTitle": "Tags" },{ "sTitle": "Size(bytes)" },{ "sTitle": "Date Modified" },@@ -266,7 +285,7 @@ console.debug("Loading UI for perspectiveDefault");var self = this;// Makes the body of the fileTable selectable- $("tbody", $(this.fileTable)).selectable({+ /* $("tbody", $(this.fileTable)).selectable({filter: 'tr',start: function() {console.debug("Start selecting");@@ -282,7 +301,7 @@ console.debug("Loading UI for perspectiveDefault");});console.debug("Selected files: "+TSCORE.selectedFiles);}- })+ }) */}ExtUI.prototype.reInitTableWithData = function(fileList) {@@ -349,6 +368,12 @@ console.debug("Loading UI for perspectiveDefault");} ).dropdown( 'attach' , '#fileMenu' );+ this.fileTable.$('.fileSelection')+ .click( function() {+ //$(this).attr("checked","checked");+ //self.selectFile(this, $(this).attr("filepath"));+ } )+this.fileTable.$('.extTagButton').click( function() {self.selectFile(this, $(this).attr("filepath"));diff --git a/data/index.html b/data/index.htmlindex b04e2538a..f961cbfad 100644--- a/data/index.html+++ b/data/index.html@@ -21,12 +21,12 @@<div id="loading" style="text-align: center; width: 100%; font-size: 1.4em; position:absolute; top:50%; text-shadow: 0px 1px 1px #fff; ">Loading <a href="javascript:window.location.reload();">TagSpaces</a> ... </div><div id="container" style="display: none;"><div class="ui-layout-north" style="padding: 3px">- <button id="toggleLeftPanel" class="btn btn-small" title="Toggle Leftpanel"><i class="icon-tagspaces"></i></button>+ <button id="toggleLeftPanel" class="btn" title="Toggle Leftpanel"><i class="icon-tagspaces"></i></button><a href="http://tagspaces.org" target="_new"><span id="logo">TagSpaces<sup id="appVersion"></sup></span></a><span id="loadingAnimation"> </span><div class="btn-toolbar pull-right" style="margin: 0px;"><div id="viewSwitcher" class="btn-group" data-toggle="buttons-radio"></div>- <button id="openOptions" role="button" class="btn btn-small" title="Open Settings Menu" data-dropdown="#settingsMenu"><i class="icon-cog"></i> <b class="caret"></b></button>+ <button id="openOptions" role="button" class="btn" title="Open Settings Menu" data-dropdown="#settingsMenu"><i class="icon-cog"></i> <b class="caret"></b></button></div></div>@@ -34,8 +34,8 @@<div id="directoryNavigator" class="west-center" style="padding: 0"><div id="directoryNavigatorNorth" style="padding: 0;" ><div class="btn-group" style=" width: 100%;">- <button id="reloadTagSpace" style="text-align: left; width: 85%;" class="btn btn-small" >Select Location</button>- <button id="selectTagSpace" style="width: 15%;" class="btn btn-small dropdown-toggle"><span class="caret"></span></button>+ <button id="reloadTagSpace" style="width: 85%; text-align: left;" class="btn" data-dropdown="#favoritesList" >Select Location</button>+ <button id="selectTagSpace" style="width: 15%;" class="btn" title="Test Tooltip"><span class="caret"></span></button></div></div><div id="dirTree" style="padding: 0px; height: 100%;">diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 2f7cc3063..c00f61837 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -180,7 +180,7 @@ define(function(require, exports, module) {, north__spacing_open: 0 // no resizer-bar when open (zero height)// , north__togglerLength_closed: '100%' // toggle-button is full-width of resizer-bar// , north__spacing_closed: 20 // big resizer-bar when open (zero height)- , north__size: 33+ , north__size: 35, south__resizable: false // OVERRIDE the pane-default of 'resizable=true', south__spacing_open: 0 // no resizer-bar when open (zero height)@@ -232,7 +232,7 @@ define(function(require, exports, module) {, south__paneSelector: ".middle-south", minSize: 0 // ALL panes, center__minSize: 300- , north__size: 32+ , north__size: 35, north__resizable: false, north__spacing_open: 0, south__spacing_open: 0@@ -253,7 +253,7 @@ define(function(require, exports, module) {});var dirNavigationLayout = $('#directoryNavigator').layout({- minSize: 32 // ALL panes+ minSize: 35 // ALL panes, north__paneSelector: "#directoryNavigatorNorth", center__paneSelector: "#dirTree", north__size: 32diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex 678594640..499a18f13 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -71,7 +71,7 @@ var initViewsUI = function(perspective) {$("#viewSwitcher").append($("<button>", {"viewid": perspective.ID,"type": "button",- "class": "btn btn-small",+ "class": "btn",id: perspective.ID+"Button",}).append($("<i>", {"class": perspective.Icondiff --git a/data/js/tags.ui.js b/data/js/tags.ui.jsindex e34d6115a..4ca85fec3 100644--- a/data/js/tags.ui.js+++ b/data/js/tags.ui.js@@ -9,12 +9,6 @@ define(function(require, exports, module) {var TSCORE = require("tscore");function initContextMenus() {- $( "#tagSuggestionsMenu" ).menu({- select: function( event, ui ) {- console.debug("Tag suggestion "+ui.item.attr( "action" )+" for tag: "+TSCORE.selectedTag);- }- });-$( "#extMenuAddTagAsFilter" ).click( function() {TSCORE.ViewManager.setFileFilter(TSCORE.selectedTag);});