TagSpaces is an offline, open source, document manager with tagging support
update
kristiyandd7a961e1a5d94
diff --git a/data/index.html b/data/index.htmlindex 881bf7aae..c1984c3af 100644--- a/data/index.html+++ b/data/index.html@@ -720,7 +720,7 @@<div class="modal-body form"><form role="form" data-toggle="validator"><div class="form-group">- <label class="control-label" for="tags" data-i18n="ns.common:tagOperationTag"></label>+ <label class="control-label" for="tags" data-i18n="ns.dialogs:tagOperationTag"></label><input class="form-control" type="text" name="tags" id="tags" autocomplete="off"data-i18n="[placeholder]ns.dialogs:tagOperationTagsPlaceholder"/><p class="help-block" data-i18n="ns.dialogs:editTagNamesRestrictionsHelp"></p>@@ -731,7 +731,7 @@<button id="cleanTagsButton" class="btn btn-danger pull-left" data-dismiss="modal" aria-hidden="true"data-i18n="ns.dialogs:tagOperationCleanTags"></button><button class="btn btn-default cancelButton" data-dismiss="modal" aria-hidden="true">- <i class="fa fa-times fa-lg"></i><span data-i18n="ns.common:cancel"></span>+ <i class="fa fa-times fa-lg"></i><span data-i18n="ns.dialogs:cancel"></span></button><button id="removeTagsButton" class="btn btn-warning" data-dismiss="modal" aria-hidden="true"data-i18n="ns.dialogs:tagOperationRemoveTag"></button>@@ -896,7 +896,7 @@<p class="help-block with-errors"></p></div><div class="form-group">- <label class="control-label" for="tagGroupBackgroundColor" data-i18n="ns.dialogs:backgroundColor"></label>+ <label class="control-label" for="tagGroupBackgroundColor" data-i18n="ns.common:tagGroupBackgroundColor"></label><input type="color" class="form-control" id="tagGroupBackgroundColor" style="padding: 0"><select class="form-control" id="tagGroupBackgroundColorChooser"><option value="#ffffff">#ffffff</option>@@ -927,7 +927,7 @@</select></div><div class="form-group">- <label class="control-label" for="tagGroupForegroundColor" data-i18n="ns.dialogs:foregroundColor"></label>+ <label class="control-label" for="tagGroupForegroundColor" data-i18n="ns.common:tagGroupForegroundColor"></label><input type="color" class="form-control" id="tagGroupForegroundColor" style="padding: 0"><select class="form-control" id="tagGroupForegroundColorChooser"><option value="#ffffff">#ffffff</option>diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex 34ed15d98..71fca1796 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -1121,11 +1121,11 @@ define(function(require, exports, module) {saveSettings();}- function createTagGroup(tagData, tagGroupName) {+ function createTagGroup(tagData, tagGroupName, tagGroupColor, tagGroupTextColor) {var newTagGroupModel = JSON.parse(JSON.stringify(tagGroupTemplate));newTagGroupModel.title = tagGroupName;- newTagGroupModel.color = exports.Settings.tagGroups.color;- newTagGroupModel.textcolor = exports.Settings.tagGroups.textcolor;+ newTagGroupModel.color = tagGroupColor;+ newTagGroupModel.textcolor = tagGroupTextColor;//newTagGroupModel.children = [];newTagGroupModel.key = '' + TSCORE.Utils.getRandomInt(10000, 99999);console.log('Creating taggroup: ' + JSON.stringify(newTagGroupModel) + ' with key: ' + newTagGroupModel.key);diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.jsonindex 1bec70d81..47c05c5b5 100644--- a/data/locales/en_US/ns.common.json+++ b/data/locales/en_US/ns.common.json@@ -252,8 +252,8 @@"exitApp":"Exit","openNewInstance":"New Application Window","documentation":"Documentation",- "backgroundColor":"Default tag background color",- "foregroundColor":"Default tag text color",+ "tagGroupBackgroundColor":"Default tag group background color",+ "tagGroupForegroundColor":"Default tag group text color","-": "-"}diff --git a/data/locales/en_US/ns.dialogs.json b/data/locales/en_US/ns.dialogs.jsonindex 213d42e1c..2589ae494 100644--- a/data/locales/en_US/ns.dialogs.json+++ b/data/locales/en_US/ns.dialogs.json@@ -194,7 +194,7 @@"save":"Save","delete":"Delete","coloredFileExtensionsEnabled":"Enable colored file type extensions",- "backgroundColor":"Default tag background color",- "foregroundColor":"Default tag text color",+ "tagBackgroundColor":"Default tag background color",+ "tagForegroundColor":"Default tag text color","-": "-"}diff --git a/data/templates/OptionsDialog.html b/data/templates/OptionsDialog.htmlindex a887ab6b0..1d445112f 100644--- a/data/templates/OptionsDialog.html+++ b/data/templates/OptionsDialog.html@@ -103,7 +103,7 @@</button></div><div class="form-group">- <label class="control-label" for="tagsBackgroundColor" data-i18n="ns.dialogs:backgroundColor"></label>+ <label class="control-label" for="tagsBackgroundColor" data-i18n="ns.dialogs:tagBackgroundColor"></label><input type="color" class="form-control" id="tagsBackgroundColor" style="padding: 0"><select class="form-control" id="tagsBackgroundColorChooser"><option value="#ffffff">#ffffff</option>@@ -134,7 +134,7 @@</select></div><div class="form-group">- <label class="control-label" for="tagsForegroundColor" data-i18n="ns.dialogs:foregroundColor"></label>+ <label class="control-label" for="tagsForegroundColor" data-i18n="ns.dialogs:tagForegroundColor"></label><input type="color" class="form-control" id="tagsForegroundColor" style="padding: 0"><select class="form-control" id="tagForegroundColorChooser"><option value="#ffffff">#ffffff</option>