tentatively add public updateItem method to ArrayEditable

This commit is contained in:
rolux 2014-12-17 19:36:13 +00:00
parent 4710f80b65
commit c3a309585e
2 changed files with 9 additions and 0 deletions

View file

@ -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;
}; };

View file

@ -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