tentatively add public updateItem method to ArrayEditable
This commit is contained in:
parent
4710f80b65
commit
c3a309585e
2 changed files with 9 additions and 0 deletions
|
@ -451,6 +451,12 @@ Ox.ArrayEditable = function(options, self) {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
that.updateItem = function(value) {
|
||||||
|
if (self.options.selected) {
|
||||||
|
self.$items[self.selected].options({value: value});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -719,6 +719,9 @@ Ox.AnnotationFolder = function(options, self) {
|
||||||
});
|
});
|
||||||
self.options.selected = item.id;
|
self.options.selected = item.id;
|
||||||
}
|
}
|
||||||
|
if (self.options.type == 'entity' && Ox.isEmpty(data)) {
|
||||||
|
self.$annotations.updateItem('');
|
||||||
|
}
|
||||||
if (self.$widget) {
|
if (self.$widget) {
|
||||||
// update may have made the item match,
|
// update may have made the item match,
|
||||||
// or no longer match, an event or place
|
// or no longer match, an event or place
|
||||||
|
|
Loading…
Reference in a new issue