# HG changeset patch # User Nicholas Jillings # Date 1450370332 0 # Node ID 5c43c9e71be98160d51317bf2baa58d692ac0ead # Parent cfbe1252ff4cf4cbb8da26cef529b7f37f536caa APE: Ape sliders show loading percentage on first axis diff -r cfbe1252ff4c -r 5c43c9e71be9 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 = [];