changeset 2935:0dd44ca5d062

Better fix for #224
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 11 Sep 2017 17:52:03 +0100
parents 260efd43fe52
children 03c166698eab
files interfaces/ABX.js
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ABX.js	Mon Sep 11 17:41:40 2017 +0100
+++ b/interfaces/ABX.js	Mon Sep 11 17:52:03 2017 +0100
@@ -271,10 +271,7 @@
         };
         this.updateLoading = function (progress) {
             // progress is a value from 0 to 100 indicating the current download state of media files
-            if (label == "X" || label == "x") {
-                this.playback.textContent = "Play";
-            }
-            if (progress != 100) {
+            if (progress != 100 && label.toLowerCase() != "x") {
                 progress = String(progress);
                 progress = progress.split('.')[0];
                 this.playback.textContent = progress + '%';