www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 70a91f9674888926aedce2fe35331de5ff5992e1
parent 3b71ec5410501580708d34f7793f82fcc77377d5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 21 Jul 2016 02:00:39 -0400

Increase max tag colors from 6 to 9

Diffstat:
Mchrome/content/zotero/xpcom/data/tags.js | 2+-
Mchrome/content/zotero/xpcom/itemTreeView.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js @@ -28,7 +28,7 @@ * Same structure as Zotero.Creators -- make changes in both places if possible */ Zotero.Tags = new function() { - this.MAX_COLORED_TAGS = 6; + this.MAX_COLORED_TAGS = 9; this.MAX_SYNC_LENGTH = 255; var _initialized = false; diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js @@ -184,7 +184,7 @@ Zotero.ItemTreeView.prototype.setTree = Zotero.Promise.coroutine(function* (tree } // We have to disable key navigation on the tree in order to - // keep it from acting on the 1-6 keys used for colored tags. + // keep it from acting on the 1-9 keys used for colored tags. // To allow navigation with other keys, we temporarily enable // key navigation and recreate the keyboard event. Since // that will trigger this listener again, we set a flag to