edit panel / clip panel: add 'selectAll' and 'invertSelection' methods
This commit is contained in:
parent
2fb2876fd2
commit
310b43df5e
2 changed files with 16 additions and 0 deletions
|
@ -477,6 +477,14 @@ Ox.ClipPanel = function(options, self) {
|
|||
);
|
||||
}
|
||||
|
||||
that.invertSelection = function() {
|
||||
self.$list.invertSelection();
|
||||
};
|
||||
|
||||
that.selectAll = function() {
|
||||
self.$list.selectAll();
|
||||
};
|
||||
|
||||
that.updateItem = function(id, data) {
|
||||
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
|
||||
['in', 'out', 'duration'].forEach(function(key) {
|
||||
|
|
|
@ -552,6 +552,14 @@ Ox.VideoEditPanel = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
that.invertSelection = function() {
|
||||
self.$clipPanel.invertSelection();
|
||||
};
|
||||
|
||||
that.selectAll = function() {
|
||||
self.$clipPanel.selectAll();
|
||||
};
|
||||
|
||||
that.updateClip = function(id, data) {
|
||||
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
|
||||
self.$clipPanel.updateItem(id, data);
|
||||
|
|
Loading…
Reference in a new issue