From cadad32440063972bfbfbef75ab6778617de3416 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 11:02:18 +0530 Subject: [PATCH] add 'disabled' option to large video timeline --- source/Ox.UI/js/Video/LargeVideoTimeline.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/source/Ox.UI/js/Video/LargeVideoTimeline.js b/source/Ox.UI/js/Video/LargeVideoTimeline.js index 140572da..c5664cec 100644 --- a/source/Ox.UI/js/Video/LargeVideoTimeline.js +++ b/source/Ox.UI/js/Video/LargeVideoTimeline.js @@ -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 = {};