1
0
Fork 0
forked from 0x2620/oxjs

update video editor

This commit is contained in:
rlx 2012-01-11 17:24:58 +05:30
commit ef82ff8967
3 changed files with 17 additions and 12 deletions

View file

@ -101,7 +101,6 @@ Ox.AnnotationPanel = function(options, self) {
}
self.$annotations.appendTo(that.$content);
//Ox.print('SOS', self.options.selected);
self.options.selected && setTimeout(function() {
selectAnnotation({id: self.options.selected});
}, 0);
@ -142,6 +141,7 @@ Ox.AnnotationPanel = function(options, self) {
var item = Ox.getObjectById(self.options.items, data.id);
item.value = data.value;
self.editing = false;
self.$annotations.options({items: self.options.items});
that.triggerEvent('submit', item);
}
@ -174,10 +174,10 @@ Ox.AnnotationPanel = function(options, self) {
items: getAnnotations()
});
} else if (key == 'selected') {
self.$annotations.options('selected', value);
self.$annotations.options({selected: value});
} else if (key == 'sort') {
self.sort = getSort();
self.$annotations.options('sort', self.sort);
self.$annotations.options({sort: self.sort});
}
};