mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Fix invalida syntax on trying to parse the progress bar percentage
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
var animation = null;
|
||||
var delta = 1;
|
||||
animate_progress_bar = function() {
|
||||
var current_value = Number($(".gProgressBar div").css("width").replace("%", ""));
|
||||
var current_value = parseInt($(".gProgressBar div").css("width").replace("%", ""));
|
||||
if (target_value > current_value) {
|
||||
// speed up
|
||||
delta = Math.min(delta + 0.04, 3);
|
||||
|
||||
Reference in New Issue
Block a user