Skip to content

Commit

Permalink
tiny jQuery tweak in admin.js. Now 0.000001ms faster. >.<
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Jul 7, 2010
1 parent 2fca586 commit 22ed7e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ var fixHelper;

$(function() {

// Sort any tables with a class of 'sortable'
var table = $('table.table-list');

// A row can be selected via check or CTRL + click
Expand Down Expand Up @@ -117,7 +116,7 @@ var fixHelper;

// Checkbox ticking
$('tbody td input[type="checkbox"]', table).change(function() {
row = $(this).parent('td').parent('tr');
row = $(this).closest('tr');
checkbox = $(this);

toggleRowChecked(row, checkbox, 'change');
Expand Down

0 comments on commit 22ed7e4

Please sign in to comment.