forked from 0x2620/oxjs
set value of Ox.Editable
This commit is contained in:
parent
7475ef0124
commit
d8adee70f7
3 changed files with 4 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
// only deselect annotation if the place deselect was not
|
||||
// caused by switching to an annotation without place
|
||||
self.$annotations.options({selected: ''});
|
||||
} else if (data.annotationIds.indexOf(self.options.selected) == -1) {
|
||||
} else if (data.annotationIds && data.annotationIds.indexOf(self.options.selected) == -1) {
|
||||
// only select a new annotation if the currently selected
|
||||
// annotation does not match the selected place
|
||||
self.$annotations.options({selected: data.annotationIds[0]});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue