changeset 1397:5c43c9e71be9

APE: Ape sliders show loading percentage on first axis
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 17 Dec 2015 16:38:52 +0000
parents cfbe1252ff4c
children eacd258d0ecd
files ape.js
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = [];