# HG changeset patch # User Nicholas Jillings # Date 1450370332 0 # Node ID 418bfb7d18edb6b401d8b7c016547f0f6d3df7df # Parent c22ce754b42601f69a2a1520dae1b7b3312d18e6 APE: Ape sliders show loading percentage on first axis diff -r c22ce754b426 -r 418bfb7d18ed 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 = [];