Skip to content

Commit 314e207

Browse files
committed
Also update the manual transcript.
1 parent ad83697 commit 314e207

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

scripts/transcript.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,19 @@
176176

177177
AblePlayer.prototype.setupManualTranscript = function() {
178178

179-
// Add an auto-scroll checkbox to the toolbar
179+
var $autoScrollInput, $autoScrollLabel;
180180

181-
this.$autoScrollTranscriptCheckbox = $('<input id="autoscroll-transcript-checkbox" type="checkbox">');
182-
this.$transcriptToolbar.append($('<label for="autoscroll-transcript-checkbox">' + this.tt.autoScroll + ': </label>'), this.$autoScrollTranscriptCheckbox);
181+
$autoScrollInput = $('<input>', {
182+
'id': 'autoscroll-transcript-checkbox-' + this.mediaId,
183+
'type': 'checkbox'
184+
});
185+
$autoScrollLabel = $('<label>', {
186+
'for': 'autoscroll-transcript-checkbox-' + this.mediaId
187+
}).text(this.tt.autoScroll);
188+
189+
// Add an auto-scroll checkbox to the toolbar.
190+
this.$autoScrollTranscriptCheckbox = $autoScrollInput;
191+
this.$transcriptToolbar.append($autoScrollLabel, this.$autoScrollTranscriptCheckbox);
183192

184193
};
185194

0 commit comments

Comments
 (0)