From bb29bd1879a6e32535010645800ddbff7908eebb Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 22 Jan 2015 16:56:02 +0100 Subject: [PATCH] Fixed label stucked at "Completed" When playing the progress bar to 100% more than once. The label stayed at "Completed" as the .value element was remove by "labelEl.text()" @ line 29. --- source/javascripts/vendor/animated-progress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/javascripts/vendor/animated-progress.js b/source/javascripts/vendor/animated-progress.js index 8c41f9f..2c91e70 100644 --- a/source/javascripts/vendor/animated-progress.js +++ b/source/javascripts/vendor/animated-progress.js @@ -26,7 +26,7 @@ } if (Math.ceil(progress) == 100) { - labelEl.text('Completed'); + valueEl.text('Completed'); setTimeout(function() { labelEl.fadeOut(); }, 1000);