Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 71e2da2

Browse files
author
Scott Jehl
committed
fixed the popup theme
1 parent a0e9e12 commit 71e2da2

File tree

3 files changed

+37
-19
lines changed

3 files changed

+37
-19
lines changed

css/structure/jquery.mobile.table.columntoggle.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,21 @@
2323
td.ui-table-priority-2,
2424
th.ui-table-priority-1,
2525
td.ui-table-priority-1 {
26-
display: none;
26+
width: 0;
27+
}
28+
th.ui-table-priority-6 *,
29+
td.ui-table-priority-6 *,
30+
th.ui-table-priority-5 *,
31+
td.ui-table-priority-5 *,
32+
th.ui-table-priority-4 *,
33+
td.ui-table-priority-4 *,
34+
th.ui-table-priority-3 *,
35+
td.ui-table-priority-3 *,
36+
th.ui-table-priority-2 *,
37+
td.ui-table-priority-2 *,
38+
th.ui-table-priority-1 *,
39+
td.ui-table-priority-1 * {
40+
width: 0;
2741
}
2842
}
2943

@@ -55,6 +69,10 @@
5569
}
5670
th.ui-table-cell-hidden,
5771
td.ui-table-cell-hidden {
72+
width: 0;
73+
}
74+
th.ui-table-cell-hidden *,
75+
td.ui-table-cell-hidden * {
5876
display: none;
5977
}
6078

docs/tables/column-financial.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,24 @@ <h2>Responsive table</h2>
100100
<th>State</th>
101101

102102
<th data-grouping="Q1 2012">Income</th>
103-
<th>Profit</th>
104-
<th>Change</th>
103+
<th data-priority="1">Profit</th>
104+
<th data-priority="1">Change</th>
105105

106-
<th>Income</th>
107-
<th>Profit</th>
108-
<th>Change</th>
106+
<th data-priority="2">Income</th>
107+
<th data-priority="2">Profit</th>
108+
<th data-priority="2">Change</th>
109109

110-
<th>Income</th>
111-
<th>Profit</th>
112-
<th>Change</th>
110+
<th data-priority="3">Income</th>
111+
<th data-priority="3">Profit</th>
112+
<th data-priority="3">Change</th>
113113

114-
<th>Income</th>
115-
<th>Profit</th>
116-
<th>Change</th>
114+
<th data-priority="4">Income</th>
115+
<th data-priority="4">Profit</th>
116+
<th data-priority="4">Change</th>
117117

118-
<th>Income</th>
119-
<th>Profit</th>
120-
<th>Change</th>
118+
<th data-priority="4">Income</th>
119+
<th data-priority="4">Profit</th>
120+
<th data-priority="4">Change</th>
121121
</tr>
122122
</thead>
123123

js/widgets/jquery.mobile.table.columntoggle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ $( document ).delegate( ":jqmData(role='table')", "tablecreate", function() {
5858
.appendTo( $menu )
5959
.children( 0 )
6060
.jqmData( "cells", $cells )
61-
.checkboxradio();
61+
.checkboxradio({
62+
theme: o.columnPopupTheme
63+
});
6264
}
6365
});
6466

@@ -70,9 +72,7 @@ $( document ).delegate( ":jqmData(role='table')", "tablecreate", function() {
7072

7173
$popup
7274
.insertBefore( $table )
73-
.popup({
74-
theme: o.columnPopupTheme
75-
});
75+
.popup();
7676

7777
// bind change event listeners to inputs - TODO: move to a private method?
7878
$menu.on( "change", "input", function( e ){

0 commit comments

Comments
 (0)