forked from 0x2620/oxjs
allow for squared-styled progress bars
This commit is contained in:
parent
32252a1dfd
commit
1734bcc66f
2 changed files with 12 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ Ox.Progressbar = function(options, self) {
|
|||
cancelled: false,
|
||||
paused: false,
|
||||
progress: 0,
|
||||
style: 'default',
|
||||
showCancelButton: false,
|
||||
showPauseButton: false,
|
||||
showPercent: false,
|
||||
|
|
@ -50,7 +51,11 @@ Ox.Progressbar = function(options, self) {
|
|||
!self.options.paused && !self.options.cancelled && setProgress(true);
|
||||
}
|
||||
})
|
||||
.addClass('OxProgressbar')
|
||||
.addClass('OxProgressbar' + (
|
||||
self.options.style != 'default'
|
||||
? ' Ox' + Ox.toTitleCase(self.options.style)
|
||||
: ''
|
||||
))
|
||||
.css({width: self.options.width - 2 + 'px'});
|
||||
|
||||
self.indeterminate = self.options.progress == -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue