Mercurial > hg > webaudioevaluationtool
diff interfaces/ABX.js @ 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 | cd1cd3358544 |
children | 270f20b2d68f |
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) {