allow for squared-styled progress bars
This commit is contained in:
parent
32252a1dfd
commit
1734bcc66f
2 changed files with 12 additions and 1 deletions
|
@ -233,6 +233,12 @@ Bars
|
|||
border-radius: 8px;
|
||||
margin: -1px;
|
||||
}
|
||||
.OxProgressbar.OxSquared,
|
||||
.OxProgressbar.OxSquared .OxTrack,
|
||||
.OxProgressbar.OxSquared .OxProgress {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.OxProgressbar .OxProgress.OxAnimate {
|
||||
-webkit-animation: progress 1s linear infinite;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue