Disable smooth progressbar scrolling when we're at 100% (else the

progressbar trucks along slowly even though the task is done).
This commit is contained in:
Bharat Mediratta
2009-07-28 20:31:24 -07:00
parent 44bc74edb9
commit eda2d75fa0

View File

@@ -10,6 +10,9 @@
if (target_value - current_value > delta) {
delta += .075;
}
if (target_value == 100) {
new_value = 100;
}
$(".gProgressBar").progressbar("value", new_value);
animation = setTimeout(function() { animate_progress_bar(target_value); }, 100);
} else {