mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 08:42:59 -07:00
Add icon change from plus to minus
This commit is contained in:
parent
d9d04f4857
commit
960c281659
1 changed files with 3 additions and 0 deletions
|
@ -248,6 +248,7 @@ history_table_options = {
|
||||||
var rowData = this.data();
|
var rowData = this.data();
|
||||||
if (rowData['group_count'] != 1 && rowData['reference_id'] in history_child_table) {
|
if (rowData['group_count'] != 1 && rowData['reference_id'] in history_child_table) {
|
||||||
// if grouped row and a child table was already created
|
// if grouped row and a child table was already created
|
||||||
|
$(this.node()).find('i.fa').toggleClass('fa-plus-circle').toggleClass('fa-minus-circle');
|
||||||
this.child(childTableFormat(rowData)).show();
|
this.child(childTableFormat(rowData)).show();
|
||||||
createChildTable(this, rowData)
|
createChildTable(this, rowData)
|
||||||
}
|
}
|
||||||
|
@ -382,6 +383,8 @@ $('#history_table').on('click', '> tbody > tr > td.expand-history a', function (
|
||||||
var tr = $(this).closest('tr');
|
var tr = $(this).closest('tr');
|
||||||
var row = history_table.row(tr);
|
var row = history_table.row(tr);
|
||||||
var rowData = row.data();
|
var rowData = row.data();
|
||||||
|
|
||||||
|
$(this).find('i.fa').toggleClass('fa-plus-circle').toggleClass('fa-minus-circle');
|
||||||
|
|
||||||
if (row.child.isShown()) {
|
if (row.child.isShown()) {
|
||||||
$('div.slider', row.child()).slideUp(function () {
|
$('div.slider', row.child()).slideUp(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue