Mercurial > hg > webaudioevaluationtool
diff interfaces/horizontal-sliders.js @ 2725:9c01d5dd22a2
#163. Made comment box highlighting a core function
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sat, 15 Apr 2017 11:59:21 +0100 |
parents | 87d9f785f1ec |
children | c59bcb698684 |
line wrap: on
line diff
--- a/interfaces/horizontal-sliders.js Sat Apr 15 11:35:59 2017 +0100 +++ b/interfaces/horizontal-sliders.js Sat Apr 15 11:59:21 2017 +0100 @@ -296,11 +296,18 @@ if (outsideReference !== null) { $(outsideReference).removeClass('track-slider-playing'); } + interfaceContext.commentBoxes.highlightById(audioObject.id); }; this.stopPlayback = function () { // Called when playback has stopped. This gets called even if playback never started! this.play.setAttribute("playstate", "ready"); $(this.holder).removeClass('track-slider-playing'); + var box = interfaceContext.commentBoxes.boxes.find(function (a) { + return a.id === audioObject.id; + }); + if (box) { + box.highlight(false); + } }; this.getValue = function () { // Return the current value of the object. If there is no value, return 0