File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments