Skip to content

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

fixing issue with disabled save button in the fileopener

uggrock46fe20f8f9ec
diff --git a/data/index.html b/data/index.html
index 2236c3a45..09d5e6300 100644
--- a/data/index.html
+++ b/data/index.html
@@ -321,7 +321,7 @@
</button>
<ul class="dropdown-menu" id="tagSuggestionsMenu"></ul>
<span id="fileTags" class="flexMaxWidth"></span>
- <div id="fileViewerMainToolbar1" class="btn-group" style="white-space: nowrap; margin-top: -8px;">
+ <div id="fileViewerMainToolbar" class="btn-group" style="white-space: nowrap; margin-top: -8px;">
<button class="btn btn-link" data-i18n="[title]ns.common:editFileTooltip" id="editDocument">
&nbsp;<i class="fa fa-pencil fa-lg"></i>&nbsp;
</button>
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 03fb89c98..30ce97ed2 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -125,12 +125,14 @@ define(function(require, exports, module) {
if (value && !_isFileChanged) {
$fileExt.text($fileExt.text() + '*');
$fileTitle.editable('disable');
- $('#tagsContainer').find('button').prop('disabled', true);
+ $('#fileTags').find('button').prop('disabled', true);
+ $('#addTagFileViewer').prop('disabled', true);
}
if (!value) {
$fileExt.text(TSCORE.TagUtils.extractFileExtension(_openedFilePath));
$fileTitle.editable('enable');
- $('#tagsContainer').find('button').prop('disabled', false);
+ $('#fileTags').find('button').prop('disabled', false);
+ $('#addTagFileViewer').prop('disabled', false);
}
_isFileChanged = value;
}