aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.progressbar.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2008-09-20 11:11:11 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2008-09-20 11:11:11 +0000
commitc784591d8ced58fe59a1295c4919b710069a1f3e (patch)
tree178d082df806c807abe859c78c3289c9ab196b47 /ui/ui.progressbar.js
parent3ccc4222a82dbe0697a3520dc8ee20e0e8047f87 (diff)
downloadjquery-ui-c784591d8ced58fe59a1295c4919b710069a1f3e.tar.gz
jquery-ui-c784591d8ced58fe59a1295c4919b710069a1f3e.zip
Progressbar - Source formatting
Diffstat (limited to 'ui/ui.progressbar.js')
-rw-r--r--ui/ui.progressbar.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js
index e79579503..b8b9e0b20 100644
--- a/ui/ui.progressbar.js
+++ b/ui/ui.progressbar.js
@@ -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() {
@@ -177,7 +177,7 @@ $.widget("ui.progressbar", {
}
this.percentState = percentState > 100 ? 100 : percentState;
- this.pixelState = (this.percentState/100)*this.options.width;
+ this.pixelState = (this.percentState/100) * this.options.width;
this.bar.width(this.pixelState);
this.textElement.width(this.pixelState);