Skip to content

TagSpaces is an offline, open source, document manager with tagging support

select directory button moved to a better place in the dialog

uggrock877b38d5e2b9
diff --git a/data/index.html b/data/index.html
index 12352eb3d..09638c7cd 100644
--- a/data/index.html
+++ b/data/index.html
@@ -188,6 +188,7 @@
<p>
<label for="location">Location</label>
<input type="text" name="location" id="favoriteLocation" />
+ <button id="selectLocalDirectory" title="Select local folder">&nbsp;</button>
</p>
</fieldset>
</form>
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index 5aaf60f75..39e028585 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -81,7 +81,18 @@ DirectoriesUI.initButtons = function() {
.next()
.hide()
.menu();
-
+
+ $( "#selectLocalDirectory" )
+ .button({
+ text: false,
+ icons: {
+ primary: "ui-icon-folder-open"
+ }
+ })
+ .click(function() {
+ IOAPI.selectDirectory();
+ return false;
+ })
}
DirectoriesUI.initDialogs = function() {
@@ -176,12 +187,6 @@ DirectoriesUI.initDialogs = function() {
height:240,
modal: true,
buttons: {
- "Select directory": function() {
- IOAPI.selectDirectory();
- },
- "Select directory": function() {
- IOAPI.selectDirectory();
- },
"Create": function() {
TSSETTINGS.createFavorite($("#favoriteName").val(), $("#favoriteLocation").val());
DirectoriesUI.initFavorites();