Ox.Progressbar: allow for setting progress to indeterminate
This commit is contained in:
parent
2fc8c3094d
commit
92566171e8
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ Ox.Progressbar = function(options, self) {
|
|||
cancelled: toggleCancelled,
|
||||
paused: togglePaused,
|
||||
progress: function() {
|
||||
self.options.progress = Ox.limit(self.options.progress, 0, 1);
|
||||
self.indeterminate = self.options.progress == -1;
|
||||
if (self.options.progress != -1) {
|
||||
self.options.progress = Ox.limit(self.options.progress, 0, 1);
|
||||
}
|
||||
!self.options.paused && !self.options.cancelled && setProgress(true);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue