From b41a9c398651af033ad8d4aa4b5d1f49ead01c7e Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 28 Nov 2010 16:24:40 +0000 Subject: [PATCH] fix loading icons for in/out point players --- build/js/ox.ui.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 9c2399a..7770677 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -10318,15 +10318,16 @@ requires if (self.options.type == 'play') { self.video.currentTime = self.options.position; } else { - self.$loadingIcon = new Ox.LoadingIcon() - .appendTo(that) - .start(); - self.$video.attr({ - src: self.options.url(self.options.position) - }) - .one('load', function() { - self.$loadingIcon.stop(); - }); + self.$loadingIcon && self.$loadingIcon.stop(); + if (self.$video.attr('src') != self.options.url(self.options.position)) { + self.$loadingIcon = new Ox.LoadingIcon() + .appendTo(that) + .start(); + self.$video.attr({ + src: self.options.url(self.options.position) + }) + .load(self.$loadingIcon.stop); + } } setMarkers(); setSubtitle();