forked from 0x2620/oxjs
use svg video markers
This commit is contained in:
parent
12423e7b03
commit
9a7a0acd89
24 changed files with 55 additions and 29 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue