ent 9303 audit log extended info
This commit is contained in:
parent
d14bcfe616
commit
6a93b4d554
|
@ -78,7 +78,6 @@ class AuditLog extends HTML
|
||||||
|
|
||||||
// Set the ajax controller.
|
// Set the ajax controller.
|
||||||
$this->ajaxController = $ajaxController;
|
$this->ajaxController = $ajaxController;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -232,7 +231,6 @@ class AuditLog extends HTML
|
||||||
|
|
||||||
// Load own javascript file.
|
// Load own javascript file.
|
||||||
echo $this->loadJS();
|
echo $this->loadJS();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -385,15 +383,14 @@ class AuditLog extends HTML
|
||||||
// Add event listener for opening and closing details
|
// Add event listener for opening and closing details
|
||||||
$('#audit_logs tbody').on('click', 'td.show_extended_info', function() {
|
$('#audit_logs tbody').on('click', 'td.show_extended_info', function() {
|
||||||
var tr = $(this).closest('tr');
|
var tr = $(this).closest('tr');
|
||||||
var table = <?php echo 'dt_'.$this->tableId; ?>;
|
var table = $("#<?php echo $this->tableId; ?>").DataTable();
|
||||||
var row = table.row(tr);
|
var row = table.row(tr);
|
||||||
|
|
||||||
if (row.child.isShown()) {
|
if (row.child.isShown()) {
|
||||||
// This row is already open - close it
|
// This row is already open - close it
|
||||||
row.child.hide();
|
row.child.hide();
|
||||||
tr.removeClass('shown');
|
tr.removeClass('shown');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Open this row
|
// Open this row
|
||||||
row.child(format(row.data())).show();
|
row.child(format(row.data())).show();
|
||||||
tr.addClass('shown');
|
tr.addClass('shown');
|
||||||
|
|
Loading…
Reference in New Issue