File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ function changeCaptionerState(captioner, state) {
175175 var row = $ ( document . getElementById ( tableId ) ) ;
176176 row . hide ( 'slow' , function ( ) {
177177 this . remove ( ) ;
178+ recountCaptioners ( ) ;
178179 } ) ;
179180 } else if ( state === 2 ) { // muted
180181 var row = $ ( document . getElementById ( tableId ) ) ;
@@ -232,7 +233,7 @@ function recountEncoders() {
232233 var body = $ ( '#encoder-selection-table > tbody' ) ;
233234 var rows = body . children ( 'tr' ) ;
234235
235- $ ( '#encoder-count' ) . text ( rows . length ) ;
236+ $ ( '#encoder-count' ) . text ( rows . length + '' ) ;
236237 rows . each ( function ( index , el ) {
237238 $ ( el ) . children ( '.row-number' ) . text ( ( index + 1 ) + '' ) ;
238239 } ) ;
@@ -264,7 +265,7 @@ function addEncoder(encoder) {
264265
265266 var row = $ ( '<tr class="encoder-row" data-encoder-id="' + encoder . ID + '"></tr>' ) ;
266267
267- row . append ( '<th scope=row>' + ( count + 1 ) + '</th>' ) ;
268+ row . append ( '<th class="row-number" scope=row>' + ( count + 1 ) + '</th>' ) ;
268269 row . append ( '<td class="editable" data-name="name" name="name">' + encoder . Name + '</td>' ) ;
269270 row . append ( '<td class="editable" data-name="ip_address" name="ip_address">' + encoder . IPAddress + '</td>' ) ;
270271 row . append ( '<td class="editable" data-name="port" name="port">' + encoder . Port + '</td>' ) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ <h3>Connected Encoders</h3>
9191 < tbody >
9292 {{range $index, $element := .Encoders }}
9393 < tr class ="encoder-row " data-encoder-id ="{{ $element.ID }} ">
94- < th scope =row >
94+ < th class =" row-number " scope =row >
9595 {{ inc $index }}
9696 </ th >
9797
You can’t perform that action at this time.
0 commit comments