1
0
Fork 0
forked from 0x2620/oxjs

allow for squared-styled progress bars

This commit is contained in:
rlx 2016-01-12 19:01:15 +05:30
commit 1734bcc66f
2 changed files with 12 additions and 1 deletions

View file

@ -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;