Mercurial > hg > webaudioevaluationtool
comparison 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 |
comparison
equal
deleted
inserted
replaced
2725:9c01d5dd22a2 | 2726:c74c698795a9 |
---|---|
278 } else { | 278 } else { |
279 $('.comparator-button').text('Listen'); | 279 $('.comparator-button').text('Listen'); |
280 } | 280 } |
281 $(this.playback).text('Stop'); | 281 $(this.playback).text('Stop'); |
282 this.playback.setAttribute("playstate", "playing"); | 282 this.playback.setAttribute("playstate", "playing"); |
283 interfaceContext.commentBoxes.highlightById(element.id); | |
283 }; | 284 }; |
284 this.stopPlayback = function () { | 285 this.stopPlayback = function () { |
285 if (this.playback.getAttribute("playstate") == "playing") { | 286 if (this.playback.getAttribute("playstate") == "playing") { |
286 $('.comparator-button').text('Listen'); | 287 $('.comparator-button').text('Listen'); |
287 $('.comparator-button').removeAttr("disabled"); | 288 $('.comparator-button').removeAttr("disabled"); |
288 this.playback.setAttribute("playstate", "ready"); | 289 this.playback.setAttribute("playstate", "ready"); |
290 } | |
291 var box = interfaceContext.commentBoxes.boxes.find(function (a) { | |
292 return a.id === element.id; | |
293 }); | |
294 if (box) { | |
295 box.highlight(false); | |
289 } | 296 } |
290 }; | 297 }; |
291 this.getValue = function () { | 298 this.getValue = function () { |
292 // Return the current value of the object. If there is no value, return 0 | 299 // Return the current value of the object. If there is no value, return 0 |
293 return this.value; | 300 return this.value; |