Increase max tag colors from 6 to 9

This commit is contained in:
Dan Stillman 2016-07-21 02:00:39 -04:00
parent 3b71ec5410
commit 70a91f9674
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
* Same structure as Zotero.Creators -- make changes in both places if possible * Same structure as Zotero.Creators -- make changes in both places if possible
*/ */
Zotero.Tags = new function() { Zotero.Tags = new function() {
this.MAX_COLORED_TAGS = 6; this.MAX_COLORED_TAGS = 9;
this.MAX_SYNC_LENGTH = 255; this.MAX_SYNC_LENGTH = 255;
var _initialized = false; var _initialized = false;

View File

@ -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 // 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 // To allow navigation with other keys, we temporarily enable
// key navigation and recreate the keyboard event. Since // key navigation and recreate the keyboard event. Since
// that will trigger this listener again, we set a flag to // that will trigger this listener again, we set a flag to