forked from 0x2620/oxjs
disable add annotation menu items if layer is not editable
This commit is contained in:
parent
9b8d45ba74
commit
21c94c00a9
2 changed files with 8 additions and 3 deletions
|
|
@ -141,7 +141,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
click: function() {
|
||||
that.triggerEvent('add', {value: ''});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
self.$infoButton = Ox.Button({
|
||||
style: 'symbol',
|
||||
|
|
@ -456,7 +456,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
) && (
|
||||
self.options.languages == 'all'
|
||||
|| self.options.languages.some(function(language) {
|
||||
return item.languages.indexOf(language) > -1;
|
||||
return item.languages && item.languages.indexOf(language) > -1;
|
||||
})
|
||||
) && (
|
||||
self.options.users == 'all'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue