# HG changeset patch # User Nicholas Jillings # Date 1450370332 0 # Node ID 946f8b4762ad3eefb2fcbb2c1a1a65bd86c36b3b # Parent 801e1977ab55dd8049c8f8f44ebceb6afe1e61cd APE: Ape sliders show loading percentage on first axis diff -r 801e1977ab55 -r 946f8b4762ad ape.js --- a/ape.js Thu Dec 17 16:29:49 2015 +0000 +++ b/ape.js Thu Dec 17 16:38:52 2015 +0000 @@ -587,7 +587,17 @@ }); } }; - + this.updateLoading = function(progress) + { + if (progress != 100) + { + progress = String(progress); + progress = progress.split('.')[0]; + this.trackSliderObjects[0].children[0].textContent = progress+'%'; + } else { + this.trackSliderObjects[0].children[0].textContent = this.parent.id; + } + }; this.exportXMLDOM = function(audioObject) { // Called by the audioObject holding this element. Must be present var obj = [];