forked from 0x2620/oxjs
update video editor
This commit is contained in:
parent
56cf323110
commit
688ae65cf1
8 changed files with 413 additions and 176 deletions
|
|
@ -174,8 +174,14 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
blur: function() {
|
||||
that.triggerEvent('blur');
|
||||
},
|
||||
change: function(data) {
|
||||
that.triggerEvent('change', Ox.extend({layer: layer.id}, data));
|
||||
},
|
||||
define: function(data) {
|
||||
that.triggerEvent('define', data);
|
||||
},
|
||||
edit: function() {
|
||||
that.triggerEvent('edit')
|
||||
that.triggerEvent('edit');
|
||||
},
|
||||
paused: function() {
|
||||
that.triggerEvent('paused')
|
||||
|
|
@ -192,7 +198,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
selectAnnotation(data, i);
|
||||
},
|
||||
submit: function(data) {
|
||||
that.triggerEvent('submit', data);
|
||||
that.triggerEvent('submit', Ox.extend({layer: layer.id}, data));
|
||||
},
|
||||
togglelayer: function(data) {
|
||||
that.triggerEvent('togglelayer', Ox.extend({layer: layer.id}, data));
|
||||
|
|
@ -290,11 +296,11 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
};
|
||||
|
||||
that.addItem = function(layer, item) {
|
||||
Ox.print('ADD ITEM', layer, item);
|
||||
var i = Ox.getIndexById(self.options.layers, layer);
|
||||
self.$folder[i].addItem(item);
|
||||
};
|
||||
|
||||
|
||||
that.blurItem = function() {
|
||||
getFolder(self.options.selected).blurItem();
|
||||
};
|
||||
|
|
@ -303,9 +309,9 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
getFolder(self.options.selected).editItem();
|
||||
};
|
||||
|
||||
that.updateItem = function(layer, item) {
|
||||
var i = Ox.getIndexById(self.options.layers, layer);
|
||||
self.$folder[i].updateItem(item);
|
||||
that.updateItem = function(item) {
|
||||
Ox.print('UPDATE ITEM', item);
|
||||
getFolder(item.id).updateItem(item);
|
||||
};
|
||||
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue