comparison 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
comparison
equal deleted inserted replaced
2725:9c01d5dd22a2 2726:c74c698795a9
292 } else { 292 } else {
293 $('.comparator-button').text('Listen'); 293 $('.comparator-button').text('Listen');
294 } 294 }
295 $(this.playback).text('Stop'); 295 $(this.playback).text('Stop');
296 this.playback.setAttribute("playstate", "playing"); 296 this.playback.setAttribute("playstate", "playing");
297 interfaceContext.commentBoxes.highlightById(audioElement.id);
297 }; 298 };
298 this.stopPlayback = function () { 299 this.stopPlayback = function () {
299 if (this.playback.getAttribute("playstate") == "playing") { 300 if (this.playback.getAttribute("playstate") == "playing") {
300 $('.comparator-button').text('Listen'); 301 $('.comparator-button').text('Listen');
301 $('.comparator-button').removeAttr("disabled"); 302 $('.comparator-button').removeAttr("disabled");
302 this.playback.setAttribute("playstate", "ready"); 303 this.playback.setAttribute("playstate", "ready");
304 }
305 var box = interfaceContext.commentBoxes.boxes.find(function (a) {
306 return a.id === audioElement.id;
307 });
308 if (box) {
309 box.highlight(false);
303 } 310 }
304 }; 311 };
305 this.exportXMLDOM = function (audioObject) { 312 this.exportXMLDOM = function (audioObject) {
306 var node = storage.document.createElement('value'); 313 var node = storage.document.createElement('value');
307 node.textContent = this.value; 314 node.textContent = this.value;