diff interfaces/AB.js @ 2726:c74c698795a9

#163. Fixed
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Sat, 15 Apr 2017 12:05:31 +0100
parents 7b1dfb582637
children d999a8fc26ea
line wrap: on
line diff
--- a/interfaces/AB.js	Sat Apr 15 11:59:21 2017 +0100
+++ b/interfaces/AB.js	Sat Apr 15 12:05:31 2017 +0100
@@ -294,6 +294,7 @@
             }
             $(this.playback).text('Stop');
             this.playback.setAttribute("playstate", "playing");
+            interfaceContext.commentBoxes.highlightById(audioElement.id);
         };
         this.stopPlayback = function () {
             if (this.playback.getAttribute("playstate") == "playing") {
@@ -301,6 +302,12 @@
                 $('.comparator-button').removeAttr("disabled");
                 this.playback.setAttribute("playstate", "ready");
             }
+            var box = interfaceContext.commentBoxes.boxes.find(function (a) {
+                return a.id === audioElement.id;
+            });
+            if (box) {
+                box.highlight(false);
+            }
         };
         this.exportXMLDOM = function (audioObject) {
             var node = storage.document.createElement('value');