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
*/
Zotero.Tags = new function() {
this.MAX_COLORED_TAGS = 6;
this.MAX_COLORED_TAGS = 9;
this.MAX_SYNC_LENGTH = 255;
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
// 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