TagSpaces is an offline, open source, document manager with tagging support
small layout changes
uggrock93a8fea0b91c
diff --git a/build.number b/build.numberindex 1a4c0e913..defa88daa 100644--- a/build.number+++ b/build.number@@ -1,3 +1,3 @@-#Build Number for ANT. Do not edit!-#Tue May 14 11:08:45 CEST 2013-build.number=1317+#Build Number for ANT. Do not edit!+#Thu May 23 12:53:55 CEST 2013+build.number=1318diff --git a/data/css/tagspaces.less b/data/css/tagspaces.lessindex b5255c951..d5d17e814 100644--- a/data/css/tagspaces.less+++ b/data/css/tagspaces.less@@ -49,13 +49,18 @@ html, body {#logo {padding: 0px;font-size: 1.4em;-// color: #00AE00;color: white;+ color: #00AE00;font-weight: bold;- padding-left: 20px;- background: url("logow.png") no-repeat;+// padding-left: 20px;+// background: url("logow.png") no-repeat left center;display: inline-block;- margin: 6px;+}++.icon-tagspaces {+ background: url("logo.png") no-repeat;+ width: 16px;+ height: 16px;}#logo:hover {@@ -255,12 +260,17 @@ li hr {}#viewToolbars {+ background-color: #F0F0F0;padding: 2px;}#viewContainers {- padding: 0;+ padding: 0;+ background-color: #F0F0F0;+// background-image: url("background2.png");+// background-repeat: repeat;}#viewFooters {+ background-color: #F0F0F0;padding: 0;}diff --git a/data/ext/perspectiveDefault/extension.js b/data/ext/perspectiveDefault/extension.jsindex c80c990d4..59faf2c68 100644--- a/data/ext/perspectiveDefault/extension.js+++ b/data/ext/perspectiveDefault/extension.js@@ -8,7 +8,7 @@ define(function(require, exports, module) {var extensionTitle = "Standard"var extensionID = "perspectiveDefault"; // ID should be equal to the directory name where the ext. is locatedvar extensionType = "view";- var extensionIcon = "icon-tags";+ var extensionIcon = "icon-list";var extensionVersion = "1.0";var extensionManifestVersion = 1;var extensionLicense = "AGPL";diff --git a/data/ext/perspectiveDefault/perspectiveUI.js b/data/ext/perspectiveDefault/perspectiveUI.jsindex eb43d4f91..645a1840f 100644--- a/data/ext/perspectiveDefault/perspectiveUI.js+++ b/data/ext/perspectiveDefault/perspectiveUI.js@@ -49,6 +49,12 @@ console.debug("Loading UI for perspectiveDefault");})).html();thumbHTML = thumbHTML + " ";}++ var checkboxHTML = $('<legend>', {+ class: "checkbox",+ }).append($('<input>', {+ type: "checkbox",+ })).html();var titleHTML = $('<p>').append($('<span>', {text: fileName,@@ -64,7 +70,7 @@ console.debug("Loading UI for perspectiveDefault");.append($("<span>", { class: "caret"}))).html();- return buttonHTML +" "+ thumbHTML + titleHTML;+ return checkboxHTML+" "+buttonHTML +" "+ thumbHTML + titleHTML;}ExtUI.prototype.buildUI = function() {@@ -177,7 +183,7 @@ console.debug("Loading UI for perspectiveDefault");this.viewToolbar.append($("<input>", {type: "search",name: "fileFilter",- class: "pull-right",+ class: "pull-right input-medium",id: this.extensionID+"FilterBox",placeholder: "File Filter",}))@@ -217,7 +223,7 @@ console.debug("Loading UI for perspectiveDefault");"bInfo": false,"bAutoWidth": false,"aoColumns": [- { "sTitle": "Title", "sClass": "right" },+ { "sTitle": "<label class='checkbox'><input id='"+this.extensionID+"ToogleSelectAll' type='checkbox'>Title</label>", "sClass": "right" },{ "sTitle": "Tags" },{ "sTitle": "Size(bytes)" },{ "sTitle": "Date Modified" },diff --git a/data/ext/perspectiveGraph/extension.js b/data/ext/perspectiveGraph/extension.jsindex d66339379..e347c82ea 100644--- a/data/ext/perspectiveGraph/extension.js+++ b/data/ext/perspectiveGraph/extension.js@@ -186,17 +186,17 @@ define(function(require, exports, module) {viewToolbar.empty();viewFooter.empty();- initUI();-- require([- extensionDirectory+'/d3/d3.js',- ], function() {- viewContainer.append('<link rel="stylesheet" type="text/css" href="'+extensionDirectory+"/"+'styles.css">');- });+ initUI();}exports.load = function load() {console.debug("Loading View "+extensionID);++ require([+ extensionDirectory+'/d3/d3.js',+ ], function() {+ viewContainer.append('<link rel="stylesheet" type="text/css" href="'+extensionDirectory+"/"+'styles.css">');+ });$( "#"+extensionID+"ReIndexButton" ).removeClass("disabled");TSCORE.hideLoadingAnimation();diff --git a/data/index.html b/data/index.htmlindex ef365b460..b04e2538a 100644--- a/data/index.html+++ b/data/index.html@@ -21,6 +21,7 @@<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><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;">@@ -37,34 +38,34 @@<button id="selectTagSpace" style="width: 15%;" class="btn btn-small dropdown-toggle"><span class="caret"></span></button></div></div>- <div id="dirTree" style="padding: 0; height: 100%;">+ <div id="dirTree" style="padding: 0px; height: 100%;"></div></div>- <div id="tagGroups" class="west-south" style="padding: 0; height: 100%"></div>+ <div id="tagGroups" class="west-south" style="padding: 0px; height: 100%"></div></div>- <div class="ui-layout-center" style="padding: 0;">+ <div class="ui-layout-center" style="padding: 0px;"><div id="viewToolbars" class="middle-north" style="background-color: #EEEEEE;"></div><div id="viewContainers" class="middle-center"></div><div id="viewFooters" class="middle-south"></div></div><div class="ui-layout-east" style="padding: 0">- <div class="east-north" style="padding: 1; background-color: #EEEEEE;">- <span id="fileTitle"></span>+ <div class="east-north" style="padding: 2px; background-color: #EEEEEE;">+ <span id="fileTitle" style="padding: 3px"></span><span id="filetoolbox" class="btn-group pull-right"></span>- <p id="tagsContainer">+ <p id="tagsContainer" style="margin-top: 5px"><span id="fileTags"></span></p><p>Path: <input id="selectedFilePath" READONLY style="width: 100%; height:25px; border: 0px; background-color: transparent;" ></input></p></div>- <div class="east-center" id="content" style="padding: 0; height: 100%">+ <div class="east-center" id="content" style="padding: 0; height: 100%; overflow: hidden !important;"><div id="viewer" allowfullscreen style="width: 100%; height: 100%" ></div></div>- <div class="east-south" style="padding: 0">+ <div class="east-south" style="padding: 0px"></div></div></div>@@ -431,7 +432,7 @@<ul id="fileActionsMenu" class="dropdown-menu has-tip anchor-right"><li><a id="editDocument" href="#" title="Edit file"><i class="icon-pencil"></i> Edit File</a></li><li><a id="showFullDetails" href="#" title="Show additional file details"><i class="icon-list-alt"></i> Show File Details</a></li>- <li><a id="openInNewWindow" href="#" title="Open file in a new tab"><i class="icon-share"></i> Open nn New Tab</a></li>+ <li><a id="openInNewWindow" href="#" title="Open file in a new tab"><i class="icon-share"></i> Open in New Tab</a></li><li><a id="startFullscreen" href="#" title="Open file in full screen"><i class="icon-fullscreen"></i> Open in Fullscreen</a></li></ul>diff --git a/data/js/core.api.js b/data/js/core.api.jsindex f753ba2af..2f7cc3063 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -128,15 +128,25 @@ define(function(require, exports, module) {location.reload();}- function openFileViewer(full) {- //if(full) {- // layoutContainer.sizePane("east",2000);- layoutContainer.open("east");- //} else {- // layoutContainer.open("east");- //}+ function openFileViewer() {+ layoutContainer.open("east");}+ var isFullWidth = false;++ function toggleFullWidth(full) {+ var fullWidth = window.innerWidth;+ var halfWidth = Math.round(fullWidth/2);+ if(!isFullWidth) {+ layoutContainer.sizePane("east", fullWidth);+ layoutContainer.open("east");+ } else {+ layoutContainer.sizePane("east", halfWidth);+ layoutContainer.open("east");+ }+ isFullWidth = !isFullWidth;+ }+var fileDetailsFull = false;function toggleFileDetails() {@@ -273,6 +283,7 @@ define(function(require, exports, module) {exports.closeFileViewer = closeFileViewer;exports.toggleLeftPanel = toggleLeftPanel;exports.toggleFileDetails = toggleFileDetails;+ exports.toggleFullWidth = toggleFullWidth;// Proxying functions from tsCoreUIexports.showAlertDialog = tsCoreUI.showAlertDialog;diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex d09965185..e790739fc 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -175,6 +175,7 @@ define(function(require, exports, module) {this.select();});+ addToggleFullWidthButton("#filetoolbox");addPrevButton("#filetoolbox");addNextButton("#filetoolbox");addTagSuggestionButton("#filetoolbox");@@ -231,6 +232,13 @@ define(function(require, exports, module) {function addFileActionsButton(container) {$( ""+container ).append('<button id="openFileActionsMenu" data-dropdown="#fileActionsMenu" class="btn btn-small" title="Opens a menu with additional file actions"><i class="icon-th-list"></i> <b class="caret"></b></button>');}++ function addToggleFullWidthButton(container) {+ $( ""+container ).append('<button id="toggleFullWidthButton" class="btn btn-small" title="Toggle Full Width"><i class="icon-resize-horizontal"></i></button>');+ $( "#toggleFullWidthButton" ).click(function() {+ TSCORE.toggleFullWidth();+ });+ }function addNextButton(container) {$( ""+container ).append('<button id="nextFileButton" class="btn btn-small" title="Go to the next file"><i class="icon-circle-arrow-right"></i></button>');@@ -250,13 +258,13 @@ define(function(require, exports, module) {$( ""+container ).append('<button id="closeOpenedFile" class="btn btn-small" title="Close file"><i class="icon-remove-sign"></i></button>');$( "#closeOpenedFile" ).click(function() {if(_isEditMode) {- if(confirm("If you confirm, all made changes will be lost.")){- // Cleaning the viewer/editor- document.getElementById("viewer").innerHTML = "";- TSCORE.FileOpener.setFileOpened(false);- TSCORE.closeFileViewer();- _isEditMode = false;- }+ TSCORE.showConfirmDialog("Confirm","If you confirm, all made changes will be lost.", function() {+ // Cleaning the viewer/editor+ document.getElementById("viewer").innerHTML = "";+ TSCORE.FileOpener.setFileOpened(false);+ TSCORE.closeFileViewer();+ _isEditMode = false;+ });} else {// Cleaning the viewer/editordocument.getElementById("viewer").innerHTML = "";@@ -279,29 +287,16 @@ define(function(require, exports, module) {this.blur();}).click(function() {- // TODO reenable edit- TSCORE.showAlertDialog("Edit button currently disabled.");- /*if ( $( this ).text() === "Edit" ) {- options = {- label: "Save&Close",- icons: {- primary: "ui-icon-disk"- }- };+ if ( !_isEditMode ) {+ $( this ).html("<i class='icon-hdd'></i> Save & Close");editFile(filePath);} else {- if(confirm("Do you really want to overwrite the current file?")) {- options = {- label: "Edit",- icons: {- primary: "ui-icon-wrench"- }- };- saveFile(filePath);- }+ TSCORE.showConfirmDialog("Confirm","Do you really want to overwrite the current file?", function() {+ $( "#editDocument" ).html("<i class='icon-pencil'></i> Edit File");+ _isEditMode = false;+ saveFile(filePath);+ });}- $( this ).button( "option", options );- */});$( "#showFullDetails" ).click(function() {diff --git a/package.json b/package.jsonindex cb1c0fa64..b78f323eb 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.4.1315",+ "version": "1.4.1317","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.rdfindex c6c8b3907..57e082d09 100644--- a/update.rdf+++ b/update.rdf@@ -7,13 +7,13 @@<r:Seq><r:li><r:Description>- <version>1.4.1315</version>+ <version>1.4.1317</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.1315.xpi</updateLink>+ <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1317.xpi</updateLink><updateInfoURL>http://tagspaces.com/releases/1.4/updateInfo.xml</updateInfoURL></r:Description></targetApplication>