add 'disabled' option to large video timeline
This commit is contained in:
parent
c417226e18
commit
cadad32440
1 changed files with 10 additions and 6 deletions
|
@ -14,6 +14,7 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
cuts: [],
|
||||
disabled: false,
|
||||
duration: 0,
|
||||
find: '',
|
||||
getImageURL: null,
|
||||
|
@ -42,12 +43,15 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
})
|
||||
.addClass('OxLargeVideoTimeline OxMedia')
|
||||
.mouseleave(mouseleave)
|
||||
.mousemove(mousemove)
|
||||
.bindEvent({
|
||||
anyclick: click,
|
||||
dragstart: dragstart,
|
||||
drag: drag
|
||||
});
|
||||
.mousemove(mousemove);
|
||||
|
||||
if (!self.options.disabled) {
|
||||
that.bindEvent({
|
||||
anyclick: click,
|
||||
dragstart: dragstart,
|
||||
drag: drag
|
||||
});
|
||||
}
|
||||
|
||||
self.$cuts = [];
|
||||
self.$pointMarker = {};
|
||||
|
|
Loading…
Reference in a new issue