From 861dabfb4379524ae48d0c59386f2ffe7c3f2339 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 13 Jul 2013 21:03:05 +0000 Subject: [PATCH] allow for updating small video timeline url --- source/Ox.UI/js/Video/SmallVideoTimeline.js | 3 +++ source/Ox.UI/js/Video/SmallVideoTimelineImage.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/source/Ox.UI/js/Video/SmallVideoTimeline.js b/source/Ox.UI/js/Video/SmallVideoTimeline.js index ea9918f4..11367f0b 100644 --- a/source/Ox.UI/js/Video/SmallVideoTimeline.js +++ b/source/Ox.UI/js/Video/SmallVideoTimeline.js @@ -37,6 +37,9 @@ Ox.SmallVideoTimeline = function(options, self) { duration: function() { self.$image.options({duration: self.options.duration}); }, + imageURL: function() { + self.$image.options({imageURL: self.options.imageURL}); + }, 'in': function() { self.$image.options({'in': self.options['in']}); self.options.mode == 'editor' && setPointMarker('in'); diff --git a/source/Ox.UI/js/Video/SmallVideoTimelineImage.js b/source/Ox.UI/js/Video/SmallVideoTimelineImage.js index af3a235d..92f5c750 100644 --- a/source/Ox.UI/js/Video/SmallVideoTimelineImage.js +++ b/source/Ox.UI/js/Video/SmallVideoTimelineImage.js @@ -26,6 +26,9 @@ Ox.SmallVideoTimelineImage = function(options, self) { }) .options(options || {}) .update({ + imageURL: function() { + self.$timeline.attr({src: self.options.imageURL}); + }, 'in': function() { self.$selection.attr({ src: getImageURL('selection')