fix #2737 (add 'Show All Users' and 'Show No Users')
This commit is contained in:
parent
c7225757df
commit
d42b9c25fb
1 changed files with 8 additions and 0 deletions
|
@ -504,13 +504,21 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
$folder.options({users: self.enabledUsers});
|
||||
});
|
||||
} else if (data.id == 'allusers') {
|
||||
self.enabledUsers = Ox.clone(self.users);
|
||||
self.users.forEach(function(user) {
|
||||
self.$optionsMenuButton.checkItem('user_' + user);
|
||||
});
|
||||
self.$folder.forEach(function($folder) {
|
||||
$folder.options({users: self.enabledUsers});
|
||||
});
|
||||
} else if (data.id == 'nousers') {
|
||||
self.enabledUsers = [];
|
||||
self.users.forEach(function(user) {
|
||||
self.$optionsMenuButton.uncheckItem('user_' + user);
|
||||
});
|
||||
self.$folder.forEach(function($folder) {
|
||||
$folder.options({users: self.enabledUsers});
|
||||
});
|
||||
} else {
|
||||
self.options[data.id] = data.checked[0].id;
|
||||
set[data.id] = self.options[data.id];
|
||||
|
|
Loading…
Reference in a new issue