mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Progressbar - Source formatting
This commit is contained in:
parent
3ccc4222a8
commit
c784591d8c
@ -19,7 +19,7 @@ $.widget("ui.progressbar", {
|
||||
|
||||
var self = this,
|
||||
options = this.options,
|
||||
id = (new Date()).getTime()+Math.random(),
|
||||
id = ((new Date()).getTime() + Math.random()),
|
||||
text = options.text || '0%';
|
||||
|
||||
this.element.addClass("ui-progressbar").width(options.width);
|
||||
@ -132,8 +132,8 @@ $.widget("ui.progressbar", {
|
||||
duration: interval,
|
||||
easing: options.equation || this.identifier,
|
||||
step: function(step, b) {
|
||||
self.progress((step/options.width)*100);
|
||||
var timestamp = new Date().getTime(), elapsedTime = (timestamp - b.startTime);
|
||||
self.progress( (step/options.width) * 100 );
|
||||
options.interval = interval - elapsedTime;
|
||||
},
|
||||
complete: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user