1
0
Fork 0
forked from 0x2620/oxjs

video editor update

This commit is contained in:
rlx 2012-01-10 20:19:28 +05:30
commit 88f31a5ae3
10 changed files with 245 additions and 65 deletions

View file

@ -85,14 +85,12 @@ Ox.AnnotationPanel = function(options, self) {
selected: self.options.selected,
sort: self.sort,
submitOnBlur: false,
width: self.options.width,
width: self.options.type == 'text' ? self.options.width + 8 : self.options.width,
type: self.options.type == 'text' ? 'textarea' : 'input'
})
.bindEvent({
add: function(data) {
that.triggerEvent('add', {
value: data.value || ''
});
that.triggerEvent('add', {value: data.value || ''});
},
blur: function() {
that.triggerEvent('blur');
@ -196,6 +194,10 @@ Ox.AnnotationPanel = function(options, self) {
self.$annotations.blurItem();
};
that.editItem = function(id) {
self.$annotations.editItem(id);
};
/*@
removeItems <f> removeItems
@*/