The branch, master has been updated via 5d4999c8cc5692cb47552c367863d0ab9a601605 (commit) from 7e79589eba71b758e94587fae369ce5792da4d17 (commit)
- Log ----------------------------------------------------------------- commit 5d4999c8cc5692cb47552c367863d0ab9a601605 Author: Marc Delisle marc@infomarc.info Date: Wed Jan 12 10:59:16 2011 -0500
Use a multiple selector Cache jQuery object to avoid unneeded DOM traversal
-----------------------------------------------------------------------
Summary of changes: js/sql.js | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/js/sql.js b/js/sql.js index e61214e..43b3af7 100644 --- a/js/sql.js +++ b/js/sql.js @@ -106,15 +106,10 @@ function appendInlineAnchor() { $this_td.after($cloned_anchor); });
- $('#rowsDeleteForm').find('thead').find('th').each(function() { - if($(this).attr('colspan') == 3) { - $(this).attr('colspan', '4') - } - }); - - $('#rowsDeleteForm').find('tbody').find('th').each(function() { - if($(this).attr('colspan') == 3) { - $(this).attr('colspan', '4') + $('#rowsDeleteForm').find('thead, tbody').find('th').each(function() { + var $this_th = $(this); + if ($this_th.attr('colspan') == 3) { + $this_th.attr('colspan', '4') } }); }
hooks/post-receive