diff interfaces/ABX.js @ 2726:c74c698795a9

#163. Fixed
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Sat, 15 Apr 2017 12:05:31 +0100
parents 536cb44c7292
children c59bcb698684
line wrap: on
line diff
--- a/interfaces/ABX.js	Sat Apr 15 11:59:21 2017 +0100
+++ b/interfaces/ABX.js	Sat Apr 15 12:05:31 2017 +0100
@@ -280,6 +280,7 @@
             }
             $(this.playback).text('Stop');
             this.playback.setAttribute("playstate", "playing");
+            interfaceContext.commentBoxes.highlightById(element.id);
         };
         this.stopPlayback = function () {
             if (this.playback.getAttribute("playstate") == "playing") {
@@ -287,6 +288,12 @@
                 $('.comparator-button').removeAttr("disabled");
                 this.playback.setAttribute("playstate", "ready");
             }
+            var box = interfaceContext.commentBoxes.boxes.find(function (a) {
+                return a.id === element.id;
+            });
+            if (box) {
+                box.highlight(false);
+            }
         };
         this.getValue = function () {
             // Return the current value of the object. If there is no value, return 0