@@ -645,7 +645,7 @@ Options -Indexes
645645 newSpan = globalThis . document . getElementById ( "th-" + i ) ;
646646 newSpan . innerHTML = "<img class='data-table-icon' src='images/chevron-down.svg' />" ;
647647 }
648- if ( newSpan ) newSpan . style = "filter: brightness(0) saturate(100%) invert(7%) sepia(95%) saturate(6909%) hue-rotate(247deg) brightness(128%) contrast(146%);" ;
648+ if ( newSpan ) newSpan . style . cssText = "filter: brightness(0) saturate(100%) invert(7%) sepia(95%) saturate(6909%) hue-rotate(247deg) brightness(128%) contrast(146%);" ;
649649
650650 if ( [ "media-table" ] . includes ( id ) ) addThumbnails ( ) ;
651651 } ) ;
@@ -1395,9 +1395,9 @@ Options -Indexes
13951395
13961396 for ( let i = 0 ; i < length ; i ++ ) { ;
13971397 if ( i >= start && i < end ) {
1398- trs [ i ] . style = "display:run-in" ;
1398+ trs [ i ] . style . cssText = "display:run-in" ;
13991399 } else {
1400- trs [ i ] . style = "display:none" ;
1400+ trs [ i ] . style . cssText = "display:none" ;
14011401 }
14021402 }
14031403
@@ -1579,20 +1579,20 @@ Options -Indexes
15791579
15801580 if ( ! filterText || filterType === 'none' ) {
15811581 if ( i < entriesPerPage ) {
1582- trs [ i ] . style = "display:run-in" ;
1582+ trs [ i ] . style . cssText = "display:run-in" ;
15831583 countVisible ++ ;
15841584 } else {
1585- trs [ i ] . style = "display:none" ;
1585+ trs [ i ] . style . cssText = "display:none" ;
15861586 }
15871587 } else {
15881588 let tds = trs [ i ] . getElementsByTagName ( "td" ) ;
15891589 for ( let j = 0 ; j < tds . length ; j ++ ) {
15901590 if ( tds [ j ] . attributes [ "name" ] && tds [ j ] . attributes [ "name" ] . value === filterType ) {
15911591 if ( tds [ j ] . innerText . toLowerCase ( ) . includes ( filterText ) ) {
1592- trs [ i ] . style = "display:run-in" ;
1592+ trs [ i ] . style . cssText = "display:run-in" ;
15931593 countVisible ++ ;
15941594 } else {
1595- trs [ i ] . style = "display:none" ;
1595+ trs [ i ] . style . cssText = "display:none" ;
15961596 }
15971597 break ;
15981598 }
@@ -1606,13 +1606,13 @@ Options -Indexes
16061606 const dataTableTo = globalThis . document . getElementById ( "data-table-to" ) ;
16071607 const dataTableOf = globalThis . document . getElementById ( "data-table-of" ) ;
16081608 if ( ! filterText || filterType === 'none' ) {
1609- tfootPagination . style = "display:run-in" ;
1610- tfootEntries . style = "display:run-in" ;
1609+ tfootPagination . style . cssText = "display:run-in" ;
1610+ tfootEntries . style . cssText = "display:run-in" ;
16111611 dataTableTo . innerText = entriesPerPage < countValid ? entriesPerPage : countValid ;
16121612 dataTableOf . innerText = countValid ;
16131613 } else {
1614- tfootPagination . style = "display:none" ;
1615- tfootEntries . style = "display:none" ;
1614+ tfootPagination . style . cssText = "display:none" ;
1615+ tfootEntries . style . cssText = "display:none" ;
16161616 dataTableTo . innerText = countVisible ;
16171617 dataTableOf . innerText = countVisible ;
16181618 }
0 commit comments