forked from 0x2620/oxjs
fix resize bugs in calendar, list calendar etc
This commit is contained in:
parent
70376be049
commit
93fe766c7b
6 changed files with 40 additions and 19 deletions
|
|
@ -28,6 +28,7 @@ Ox.VideoEditor = function(options, self) {
|
|||
clickLink: null,
|
||||
cuts: [],
|
||||
duration: 0,
|
||||
download: false,
|
||||
enableSubtitles: false,
|
||||
find: '',
|
||||
fps: 25,
|
||||
|
|
@ -426,9 +427,9 @@ Ox.VideoEditor = function(options, self) {
|
|||
{id: 'largeTimeline', title: 'Hide Large Timeline', disabled: true},
|
||||
{id: 'subtitlesTimeline', title: 'Hide Subtitles on Large Timeline', disabled: true},
|
||||
{},
|
||||
{id: 'downloadVideo', title: 'Download Video...', disabled: true},
|
||||
{id: 'downloadSelection', title: 'Download Selection...', disabled: true},
|
||||
{id: 'embedSelection', title: 'Embed Selection...', disabled: true},
|
||||
{id: 'downloadVideo', title: 'Download Video...', disabled: !self.options.download },
|
||||
{id: 'downloadSelection', title: 'Download Selection...', disabled: !self.options.download},
|
||||
{id: 'embedSelection', title: 'Embed Selection...', disabled: !self.options.download},
|
||||
{},
|
||||
{id: 'keyboard', title: 'Keyboard Shortcuts...', keyboard: 'h'}
|
||||
],
|
||||
|
|
@ -453,6 +454,18 @@ Ox.VideoEditor = function(options, self) {
|
|||
title: 'Keyboard Shortcuts',
|
||||
width: 256
|
||||
}).open();
|
||||
} else if (id == 'download') {
|
||||
that.triggerEvent('download');
|
||||
} else if (id == 'downloadSelection') {
|
||||
that.triggerEvent('downloadSelection', {
|
||||
'in': self.options['in'],
|
||||
out: self.options.out,
|
||||
});
|
||||
} else if (id == 'embedSelection') {
|
||||
that.triggerEvent('embedSelection', {
|
||||
'in': self.options['in'],
|
||||
out: self.options.out,
|
||||
});
|
||||
}
|
||||
},
|
||||
change: function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue