Mercurial > hg > webaudioevaluationtool
diff interfaces/mushra.js @ 2726:c74c698795a9
#163. Fixed
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sat, 15 Apr 2017 12:05:31 +0100 |
parents | d29471d114cf |
children | c59bcb698684 |
line wrap: on
line diff
--- a/interfaces/mushra.js Sat Apr 15 11:59:21 2017 +0100 +++ b/interfaces/mushra.js Sat Apr 15 12:05:31 2017 +0100 @@ -316,6 +316,7 @@ this.play.setAttribute("playstate", "playing"); $(".track-slider").removeClass('track-slider-playing'); $(this.holder).addClass('track-slider-playing'); + interfaceContext.commentBoxes.highlightById(audioObject.id); var outsideReference = document.getElementById('outside-reference'); if (outsideReference !== null) { $(outsideReference).removeClass('track-slider-playing'); @@ -347,6 +348,12 @@ $(this.slider).addClass("track-slider-range-disabled"); this.slider.setAttribute("disabled", "true"); } + var box = interfaceContext.commentBoxes.boxes.find(function (a) { + return a.id === audioObject.id; + }); + if (box) { + box.highlight(false); + } }; this.getValue = function () { return this.slider.value;