Hide delete and watched columns in column selector.

Add delete mode to user history tab too.
Some styling changes.
This commit is contained in:
Tim 2015-08-16 23:30:45 +02:00
parent 6b1a57e650
commit 51e1949538
3 changed files with 27 additions and 10 deletions

View file

@ -32,7 +32,7 @@
<th align='left' id="paused_counter">Paused</th>
<th align='left' id="stopped">Stopped</th>
<th align='left' id="duration">Duration</th>
<th align='left' id="percent_complete">Watched</th>
<th align='left' id="percent_complete"></th>
</tr>
</thead>
<tbody>
@ -63,7 +63,7 @@
}
}
history_table = $('#history_table').DataTable(history_table_options);
var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: '<i class="fa fa-columns"> Select columns</i>', buttonClass: 'btn btn-dark' });
var colvis = new $.fn.dataTable.ColVis(history_table, { buttonText: '<i class="fa fa-columns"> Select columns</i>', buttonClass: 'btn btn-dark', exclude: [0, 10] });
$(colvis.button()).appendTo('div.colvis-button-bar');
$('#row-edit-mode').click(function() {