File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -828,15 +828,12 @@ function getLanguage() {
828
828
*/
829
829
$ ( document ) . ready ( function ( ) {
830
830
$ ( 'table' ) . each ( function ( ) {
831
- var $table = $ ( this ) ;
832
- $table . find ( 'th' ) . each ( function ( index ) {
833
- var $th = $ ( this ) ;
834
- var text = $th . text ( ) ;
835
- if ( text === '' ) {
836
- return ;
837
- }
838
- $table . find ( 'td:nth-child(' + ( index + 1 ) + ')' )
839
- . attr ( 'data-label' , text ) ;
831
+ var $columns = $ ( this ) . find ( 'td:not(.collapse-phone)' ) ;
832
+ var $headers = $ ( this ) . find ( 'th' ) ;
833
+ $headers . each ( function ( index ) {
834
+ $columns . filter ( function ( counter ) {
835
+ return index === counter % $headers . length ;
836
+ } ) . attr ( 'data-label' , $ ( this ) . text ( ) ) ;
840
837
} ) ;
841
838
} ) ;
842
839
} ) ;
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ table.standard tr.stable td:first-child {
19
19
}
20
20
21
21
table .standard td .collapse-phone {
22
- padding : 0 ;
22
+ display : none ;
23
23
}
24
24
25
- table .standard td . collapse-phone * {
26
- display : none ;
25
+ table .standard : nth-of-type ( 2 ) td :: before {
26
+ content : unset ;
27
27
}
28
28
}
29
29
You can’t perform that action at this time.
0 commit comments