forked from 0x2620/oxjs
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,
|
cancelled: toggleCancelled,
|
||||||
paused: togglePaused,
|
paused: togglePaused,
|
||||||
progress: function() {
|
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);
|
!self.options.paused && !self.options.cancelled && setProgress(true);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue