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

Commit

Permalink
fixed the popup theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Jehl committed Oct 26, 2012
1 parent a0e9e12 commit 71e2da2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
20 changes: 19 additions & 1 deletion css/structure/jquery.mobile.table.columntoggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,21 @@
td.ui-table-priority-2,
th.ui-table-priority-1,
td.ui-table-priority-1 {
display: none;
width: 0;
}
th.ui-table-priority-6 *,
td.ui-table-priority-6 *,
th.ui-table-priority-5 *,
td.ui-table-priority-5 *,
th.ui-table-priority-4 *,
td.ui-table-priority-4 *,
th.ui-table-priority-3 *,
td.ui-table-priority-3 *,
th.ui-table-priority-2 *,
td.ui-table-priority-2 *,
th.ui-table-priority-1 *,
td.ui-table-priority-1 * {
width: 0;
}
}

Expand Down Expand Up @@ -55,6 +69,10 @@
}
th.ui-table-cell-hidden,
td.ui-table-cell-hidden {
width: 0;
}
th.ui-table-cell-hidden *,
td.ui-table-cell-hidden * {
display: none;
}

Expand Down
28 changes: 14 additions & 14 deletions docs/tables/column-financial.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,24 @@ <h2>Responsive table</h2>
<th>State</th>

<th data-grouping="Q1 2012">Income</th>
<th>Profit</th>
<th>Change</th>
<th data-priority="1">Profit</th>
<th data-priority="1">Change</th>

<th>Income</th>
<th>Profit</th>
<th>Change</th>
<th data-priority="2">Income</th>
<th data-priority="2">Profit</th>
<th data-priority="2">Change</th>

<th>Income</th>
<th>Profit</th>
<th>Change</th>
<th data-priority="3">Income</th>
<th data-priority="3">Profit</th>
<th data-priority="3">Change</th>

<th>Income</th>
<th>Profit</th>
<th>Change</th>
<th data-priority="4">Income</th>
<th data-priority="4">Profit</th>
<th data-priority="4">Change</th>

<th>Income</th>
<th>Profit</th>
<th>Change</th>
<th data-priority="4">Income</th>
<th data-priority="4">Profit</th>
<th data-priority="4">Change</th>
</tr>
</thead>

Expand Down
8 changes: 4 additions & 4 deletions js/widgets/jquery.mobile.table.columntoggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ $( document ).delegate( ":jqmData(role='table')", "tablecreate", function() {
.appendTo( $menu )
.children( 0 )
.jqmData( "cells", $cells )
.checkboxradio();
.checkboxradio({
theme: o.columnPopupTheme
});
}
});

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

$popup
.insertBefore( $table )
.popup({
theme: o.columnPopupTheme
});
.popup();

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

0 comments on commit 71e2da2

Please sign in to comment.