set cut marker image on all images at once, to improve load performance

This commit is contained in:
j 2014-01-16 09:24:24 +00:00
parent 3d33a16668
commit 6dc3e96ff1

View file

@ -97,10 +97,10 @@ Ox.LargeVideoTimeline = function(options, self) {
self.options.cuts.forEach(function(v, i) { self.options.cuts.forEach(function(v, i) {
self.$cuts[i] = $('<img>') self.$cuts[i] = $('<img>')
.addClass('OxCut') .addClass('OxCut')
.attr({src: Ox.UI.getImageURL('markerCut')})
.css({left: (v * self.fps) + 'px'}) .css({left: (v * self.fps) + 'px'})
.appendTo(self.$timeline); .appendTo(self.$timeline);
}); });
self.$timeline.find('.OxCut').attr({src: Ox.UI.getImageURL('markerCut')});
self.$markerPosition = $('<img>') self.$markerPosition = $('<img>')
.addClass('OxMarkerPosition') .addClass('OxMarkerPosition')