TagSpaces is an offline, open source, document manager with tagging support
adding checkbox in the experimental option for loading of the location meta data
Ilianea4534802047
diff --git a/data/js/options.ui.js b/data/js/options.ui.jsindex 88acce3fa..bdc6e69bf 100644--- a/data/js/options.ui.js+++ b/data/js/options.ui.js@@ -92,6 +92,7 @@$("#showHiddenFilesCheckbox").attr("checked",TSCORE.Config.getShowUnixHiddenEntries());$("#checkforUpdatesCheckbox").attr("checked",TSCORE.Config.getCheckForUpdates());$("#calculateTagsCheckbox").attr("checked",TSCORE.Config.getCalculateTags());+ $("#loadLocationMetaData").attr("checked",TSCORE.Config.getLoadLocationMeta());$("#tagsDelimiterInput").val(TSCORE.Config.getTagDelimiter());$("#prefixTagContainerInput").val(TSCORE.Config.getPrefixTagContainer());@@ -101,7 +102,6 @@$("#reloadDocumentKeyBinding").val(TSCORE.Config.getReloadDocumentKeyBinding());$("#saveDocumentKeyBinding").val(TSCORE.Config.getSaveDocumentKeyBinding());$("#documentPropertiesKeyBinding").val(TSCORE.Config.getPropertiesDocumentKeyBinding());- //$("#").val(TSCORE.Config.get());$('#perspectiveList').empty();TSCORE.Config.getPerspectives().forEach(function (value) {@@ -157,6 +157,7 @@TSCORE.Config.setCalculateTags($('#calculateTagsCheckbox').is(":checked"));TSCORE.Config.setTagDelimiter($("#tagsDelimiterInput").val());TSCORE.Config.setPrefixTagContainer($("#prefixTagContainerInput").val());+ TSCORE.Config.setLoadLocationMeta($("#loadLocationMetaData").is(":checked"));TSCORE.Config.setNextDocumentKeyBinding(parseKeyBinding($("#nextDocumentKeyBinding").val()));TSCORE.Config.setPrevDocumentKeyBinding(parseKeyBinding($("#prevDocumentKeyBinding").val()));diff --git a/data/templates/OptionsDialog.html b/data/templates/OptionsDialog.htmlindex 791607f58..637918156 100644--- a/data/templates/OptionsDialog.html+++ b/data/templates/OptionsDialog.html@@ -114,6 +114,13 @@<label for='extensionsPathInput' data-i18n="ns.dialogs:extensionsFolder">Extensions folder (default value is "ext")</label><input type='text' class='form-control' id='extensionsPathInput' data-i18n="[placeholder]ns.dialogs:extensionsFolderPlaceholder"/></div>+ <div class='checkbox col-sm-12'>+ <label>+ <input type='checkbox' id='loadLocationMetaData'/>+ <span>Loads location meta data (currently only tags)</span>+ </label><!-- data-i18n="ns.dialogs:loadLocationMetaData" data-i18n="ns.dialogs:loadLocationMetaDataHelp" -->+ <p class="help-block">Location metadata file "tsm.json" should be placed in the ".ts "subfolder of the current location. The file format will be presented on the TagSpaces blog.</p>+ </div><div class='checkbox col-sm-12'><label><input type='checkbox' id='calculateTagsCheckbox'/>