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)
|
var that = Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
cuts: [],
|
cuts: [],
|
||||||
|
disabled: false,
|
||||||
duration: 0,
|
duration: 0,
|
||||||
find: '',
|
find: '',
|
||||||
getImageURL: null,
|
getImageURL: null,
|
||||||
|
@ -42,12 +43,15 @@ Ox.LargeVideoTimeline = function(options, self) {
|
||||||
})
|
})
|
||||||
.addClass('OxLargeVideoTimeline OxMedia')
|
.addClass('OxLargeVideoTimeline OxMedia')
|
||||||
.mouseleave(mouseleave)
|
.mouseleave(mouseleave)
|
||||||
.mousemove(mousemove)
|
.mousemove(mousemove);
|
||||||
.bindEvent({
|
|
||||||
anyclick: click,
|
if (!self.options.disabled) {
|
||||||
dragstart: dragstart,
|
that.bindEvent({
|
||||||
drag: drag
|
anyclick: click,
|
||||||
});
|
dragstart: dragstart,
|
||||||
|
drag: drag
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
self.$cuts = [];
|
self.$cuts = [];
|
||||||
self.$pointMarker = {};
|
self.$pointMarker = {};
|
||||||
|
|
Loading…
Reference in a new issue