Skip to content

Commit

Permalink
be less terrible
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Dec 7, 2015
1 parent 2b8e448 commit 6bd8f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/canada/public/static/js/dynamic_datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ $(document).on("pageinit", function()
var columnIndex = 0;
$("#dtprv-popup fieldset").find("input").each(function(){
var sel = ":nth-child(" + (columnIndex + 1) + ")";
$(this).jqmData("cells", $("#dtprv").find("tr").children(sel));
var $column = $("#dtprv").find("tr").children(sel);
$(this).jqmData("cells", $column);
columnIndex++;
// with another terrible workaround
// with an extra workaround
if (!this.checked) {
$(this).click();
$(this).click();
$column.addClass("ui-table-cell-hidden");
}
});
$('#dtprv').table('refresh');
Expand Down

0 comments on commit 6bd8f9a

Please sign in to comment.