From 6dc3e96ff1ed2c93c76b540c2e79f48f3664bbe8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 16 Jan 2014 09:24:24 +0000 Subject: [PATCH] set cut marker image on all images at once, to improve load performance --- source/Ox.UI/js/Video/LargeVideoTimeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/LargeVideoTimeline.js b/source/Ox.UI/js/Video/LargeVideoTimeline.js index 9bd201e6..f012a469 100644 --- a/source/Ox.UI/js/Video/LargeVideoTimeline.js +++ b/source/Ox.UI/js/Video/LargeVideoTimeline.js @@ -97,10 +97,10 @@ Ox.LargeVideoTimeline = function(options, self) { self.options.cuts.forEach(function(v, i) { self.$cuts[i] = $('') .addClass('OxCut') - .attr({src: Ox.UI.getImageURL('markerCut')}) .css({left: (v * self.fps) + 'px'}) .appendTo(self.$timeline); }); + self.$timeline.find('.OxCut').attr({src: Ox.UI.getImageURL('markerCut')}); self.$markerPosition = $('') .addClass('OxMarkerPosition')