Mercurial > hg > webaudioevaluationtool
diff interfaces/discrete.js @ 2726:c74c698795a9
#163. Fixed
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sat, 15 Apr 2017 12:05:31 +0100 |
parents | 87d9f785f1ec |
children | c59bcb698684 |
line wrap: on
line diff
--- a/interfaces/discrete.js Sat Apr 15 11:59:21 2017 +0100 +++ b/interfaces/discrete.js Sat Apr 15 12:05:31 2017 +0100 @@ -338,6 +338,7 @@ $('.track-slider-button').text = "Wait"; $('.track-slider-button').attr("disabled", "true"); } + interfaceContext.commentBoxes.highlightById(audioObject.id); }; this.stopPlayback = function () { // Called by audioObject when playback stops @@ -347,6 +348,12 @@ $('.track-slider-button').text = "Play"; this.play.textContent = "Play"; $('.track-slider-button').removeAttr("disabled"); + var box = interfaceContext.commentBoxes.boxes.find(function (a) { + return a.id === audioObject.id; + }); + if (box) { + box.highlight(false); + } } };