Skip to content

Commit

Permalink
make whole row clickable to expand stack trace (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuggins authored and rap2hpoutre committed May 25, 2017
1 parent 4129da0 commit a1cc266
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<tbody>

@foreach($logs as $key => $log)
<tr>
<tr data-display="stack{{{$key}}}">
<td class="text-{{{$log['level_class']}}}"><span class="glyphicon glyphicon-{{{$log['level_img']}}}-sign" aria-hidden="true"></span> &nbsp;{{$log['level']}}</td>
<td class="text">{{$log['context']}}</td>
<td class="date">{{{$log['date']}}}</td>
Expand Down Expand Up @@ -110,6 +110,9 @@
<script src="https://cdn.datatables.net/plug-ins/9dcbecd42ad/integration/bootstrap/3/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function(){
$('tr').on('click', function () {
$('#' + $(this).data('display')).toggle();
});
$('#table-log').DataTable({
"order": [ 1, 'desc' ],
"stateSave": true,
Expand Down

0 comments on commit a1cc266

Please sign in to comment.