add 'disabled' option to large video timeline

This commit is contained in:
rolux 2013-02-25 11:02:18 +05:30
parent c417226e18
commit cadad32440

View file

@ -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 = {};