File tree 3 files changed +7
-13
lines changed
3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -826,16 +826,14 @@ function getLanguage() {
826
826
* "data-label" with the text of the th.
827
827
*/
828
828
$ ( document ) . ready ( function ( ) {
829
- $ ( 'table' ) . each ( function ( ) {
829
+ $ ( 'table.versions ' ) . each ( function ( ) {
830
830
var $table = $ ( this ) ;
831
+ var $colms = $table . find ( 'td:not(.collapse-phone)' ) ;
832
+ var $title = $table . find ( 'th' ) ;
831
833
$table . find ( 'th' ) . each ( function ( index ) {
832
- var $th = $ ( this ) ;
833
- var text = $th . text ( ) ;
834
- if ( text === '' ) {
835
- return ;
836
- }
837
- $table . find ( 'td:nth-child(' + ( index + 1 ) + ')' )
838
- . attr ( 'data-label' , text ) ;
834
+ $colms . filter ( function ( counter ) {
835
+ return index === ( counter ) % ( $title . length ) ;
836
+ } ) . attr ( 'data-label' , $ ( this ) . text ( ) ) ;
839
837
} ) ;
840
838
} ) ;
841
839
} ) ;
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ table.standard tr.stable td:first-child {
19
19
}
20
20
21
21
table .standard td .collapse-phone {
22
- padding : 0 ;
23
- }
24
-
25
- table .standard td .collapse-phone * {
26
22
display : none;
27
23
}
28
24
}
Original file line number Diff line number Diff line change 36
36
37
37
<h3>Currently Supported Versions</h3>
38
38
39
- <table class="standard">
39
+ <table class="standard versions ">
40
40
<thead>
41
41
<tr>
42
42
<th>Branch</th>
You can’t perform that action at this time.
0 commit comments