only show users in menu if there are annotations

This commit is contained in:
rlx 2012-02-19 09:01:13 +00:00
parent 9558070d8f
commit 696741190a

View file

@ -328,7 +328,7 @@ Ox.AnnotationPanel = function(options, self) {
{id: 'large', title: 'Large', checked: self.options.font == 'large'} {id: 'large', title: 'Large', checked: self.options.font == 'large'}
]} ]}
] : [], ] : [],
self.options.showUsers ? [ self.options.showUsers && self.users.length ? [
{}, {},
{id: 'users', title: 'Show Users', disabled: true}, {id: 'users', title: 'Show Users', disabled: true},
{group: 'users', min: 1, max: -1, items: self.users.map(function(user) { {group: 'users', min: 1, max: -1, items: self.users.map(function(user) {