in edits, handle 'add to clipboard'; resize clip list on window resize

This commit is contained in:
rlx 2013-07-15 10:04:56 +00:00
parent 27bbbdbd83
commit c6c3452853
2 changed files with 8 additions and 4 deletions

View file

@ -28,6 +28,9 @@ Ox.ClipPanel = function(options, self) {
updateStatus(); updateStatus();
}, },
duration: updateStatus, duration: updateStatus,
height: function() {
self.$list.size();
},
sort: function() { sort: function() {
updateSortElement(); updateSortElement();
self.$list.options({ self.$list.options({
@ -255,8 +258,8 @@ Ox.ClipPanel = function(options, self) {
copy: function(data) { copy: function(data) {
that.triggerEvent('copy', data); that.triggerEvent('copy', data);
}, },
cut: function(data) { copyadd: function(data) {
that.triggerEvent('cut', data); that.triggerEvent('copyadd', data);
}, },
'delete': function(data) { 'delete': function(data) {
that.triggerEvent('remove', data); that.triggerEvent('remove', data);

View file

@ -58,6 +58,7 @@ Ox.VideoEditPanel = function(options, self) {
}, },
height: function() { height: function() {
self.$video.options({height: getPlayerHeight()}); self.$video.options({height: getPlayerHeight()});
self.$clipPanel.options({height: self.options.height});
}, },
'in': function() { 'in': function() {
setPoint('in', self.options['in']); setPoint('in', self.options['in']);
@ -254,8 +255,8 @@ Ox.VideoEditPanel = function(options, self) {
copy: function(data) { copy: function(data) {
that.triggerEvent('copy', data); that.triggerEvent('copy', data);
}, },
cut: function(data) { copyadd: function(data) {
that.triggerEvent('cut', data); that.triggerEvent('copyadd', data);
}, },
edit: function(data) { edit: function(data) {
that.triggerEvent('edit', data); that.triggerEvent('edit', data);