changeset 2927:796daa52e3f8

Fix #224
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 06 Sep 2017 18:44:42 +0100
parents 151fae569ce9
children b2dcdd55721d 270f20b2d68f cae294cb0242
files interfaces/ABX.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/ABX.js	Wed Sep 06 14:47:19 2017 +0100
+++ b/interfaces/ABX.js	Wed Sep 06 18:44:42 2017 +0100
@@ -271,6 +271,9 @@
         };
         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) {
                 progress = String(progress);
                 progress = progress.split('.')[0];
@@ -335,6 +338,9 @@
         this.error = function () {
             // If there is an error with the audioObject, this will be called to indicate a failure
         };
+        if (label == "X" || label == "x") {
+            this.enable();
+        }
     };
     // Ensure there are only two comparisons per page
     if (page.audioElements.length != 2) {