Mercurial > hg > webaudioevaluationtool
comparison interfaces/ABX.js @ 2936:03c166698eab
Fix #229
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 12 Sep 2017 14:02:06 +0100 |
parents | 0dd44ca5d062 |
children | a5da95ad84f9 1620cbee9111 |
comparison
equal
deleted
inserted
replaced
2935:0dd44ca5d062 | 2936:03c166698eab |
---|---|
296 this.playback.setAttribute("playstate", "playing"); | 296 this.playback.setAttribute("playstate", "playing"); |
297 interfaceContext.commentBoxes.highlightById(element.id); | 297 interfaceContext.commentBoxes.highlightById(element.id); |
298 }; | 298 }; |
299 this.stopPlayback = function () { | 299 this.stopPlayback = function () { |
300 if (this.playback.getAttribute("playstate") == "playing") { | 300 if (this.playback.getAttribute("playstate") == "playing") { |
301 $('.comparator-button').text('Listen'); | 301 $(this.playback).text('Listen'); |
302 $('.comparator-button').removeAttr("disabled"); | 302 $(this.playback).removeAttr("disabled"); |
303 this.playback.setAttribute("playstate", "ready"); | 303 this.playback.setAttribute("playstate", "ready"); |
304 } | 304 } |
305 var box = interfaceContext.commentBoxes.boxes.find(function (a) { | 305 var box = interfaceContext.commentBoxes.boxes.find(function (a) { |
306 return a.id === element.id; | 306 return a.id === element.id; |
307 }); | 307 }); |