Skip to content

Commit

Permalink
fixed error details
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Seguin committed Jun 26, 2012
1 parent 7e9c196 commit 064e813
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/manage/errors/_error_row.html.erb
Expand Up @@ -6,5 +6,5 @@
<td class="delete"></td>
</tr>
<tr>
<td colspan="5"><%= simple_format(error.details) %></td>
<td colspan="5" class="details"><%= simple_format(error.details) %></td>
</tr>
7 changes: 4 additions & 3 deletions app/views/manage/errors/index.html.erb
Expand Up @@ -29,9 +29,10 @@
}
}).find('tbody');

$tbody.delegate('tr:even td:not(.delete)', 'click', function()
{
$(this).parent().toggleClass('active').next().toggle();
$tbody.delegate('td', 'click', function() {
var $td = $(this)
if ($td.is('.delete') || $td.is('.details')) { return true; }
$td.parent().toggleClass('active').next().toggle();
}).confirm('td.delete', 'Delete this error?', 'This error will be permanently deleted and cannot be recovered. Are you sure?', function($td){ return do_delete('/manage/errors/' + $td.closest('tr').data('id') + '?game_id=<%=@game.id%>'); });
<% end %>
<% end %>
Expand Down

0 comments on commit 064e813

Please sign in to comment.