1
0
Fork 0
forked from 0x2620/oxjs

use svg video markers

This commit is contained in:
rlx 2011-09-02 00:32:23 +00:00
commit 9a7a0acd89
24 changed files with 55 additions and 29 deletions

View file

@ -79,8 +79,7 @@ Ox.Progressbar = function(options, self) {
function cancel() {
self.cancelled = true;
self.options.progress = 1;
setProgress();
stop();
that.triggerEvent('cancel');
}
@ -119,17 +118,19 @@ Ox.Progressbar = function(options, self) {
self.$progress.stop().animate({
width: Math.round(14 + self.options.progress * (self.trackWidth - 16)) + 'px'
}, 250, function() {
if (self.options.progress == 1) {
pause();
self.$time && self.$time
.addClass('OxSmall')
.html(self.cancelled ? 'Cancelled' : 'Complete');
self.$pauseButton.options({disabled: true});
self.$cancelButton.options({disabled: true});
}
self.options.progress == 1 && stop();
});
}
function stop() {
pause();
self.$time && self.$time
.addClass('OxSmall')
.html(self.cancelled ? 'Cancelled' : 'Complete');
self.$pauseButton.options({disabled: true});
self.$cancelButton.options({disabled: true});
}
function togglePaused() {
self.options.paused = !self.options.paused;
if (self.options.paused) {