# HG changeset patch # User Nicholas Jillings # Date 1492594016 -3600 # Node ID d999a8fc26ea3299248896d8b95cf8baf093a5be # Parent a13adc8f8d3de8ea45ae562cd2edd232566791d0 #174: Fixed AB playback button text and locking diff -r a13adc8f8d3d -r d999a8fc26ea interfaces/AB.js --- a/interfaces/AB.js Wed Apr 19 09:30:06 2017 +0100 +++ b/interfaces/AB.js Wed Apr 19 10:26:56 2017 +0100 @@ -288,7 +288,7 @@ if (this.parent.specification.parent.playOne || specification.playOne) { $('.comparator-button').text('Wait'); $('.comparator-button').attr("disabled", "true"); - $(this.playback).css("disabled", "false"); + $(this.playback).removeAttr("disabled"); } else { $('.comparator-button').text('Listen'); } @@ -298,9 +298,13 @@ }; this.stopPlayback = function () { if (this.playback.getAttribute("playstate") == "playing") { - $('.comparator-button').text('Listen'); - $('.comparator-button').removeAttr("disabled"); + $(this.playback).text('Listen'); + $(this.playback).removeAttr("disabled"); this.playback.setAttribute("playstate", "ready"); + if (this.parent.specification.parent.playOne || specification.playOne) { + $('.comparator-button').text('Listen'); + $('.comparator-button').removeAttr("disabled"); + } } var box = interfaceContext.commentBoxes.boxes.find(function (a) { return a.id === audioElement.id;