diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-28 20:31:24 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-28 20:31:24 -0700 |
commit | eda2d75fa0fc1fa3f4c8b5f1dcbdc446419f7bd5 (patch) | |
tree | 362ed57b353e5fd30f6bba0396dce948d4aa013c /modules/gallery/views/admin_maintenance_task.html.php | |
parent | 44bc74edb9ae77bfaeb70f708411026131ec12bb (diff) |
Disable smooth progressbar scrolling when we're at 100% (else the
progressbar trucks along slowly even though the task is done).
Diffstat (limited to 'modules/gallery/views/admin_maintenance_task.html.php')
-rw-r--r-- | modules/gallery/views/admin_maintenance_task.html.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_maintenance_task.html.php b/modules/gallery/views/admin_maintenance_task.html.php index c81fe571..4755fe73 100644 --- a/modules/gallery/views/admin_maintenance_task.html.php +++ b/modules/gallery/views/admin_maintenance_task.html.php @@ -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 { |