Use a multiple selector
Cache jQuery object to avoid unneeded DOM traversal
This commit is contained in:
13
js/sql.js
13
js/sql.js
@@ -106,15 +106,10 @@ function appendInlineAnchor() {
|
|||||||
$this_td.after($cloned_anchor);
|
$this_td.after($cloned_anchor);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#rowsDeleteForm').find('thead').find('th').each(function() {
|
$('#rowsDeleteForm').find('thead, tbody').find('th').each(function() {
|
||||||
if($(this).attr('colspan') == 3) {
|
var $this_th = $(this);
|
||||||
$(this).attr('colspan', '4')
|
if ($this_th.attr('colspan') == 3) {
|
||||||
}
|
$this_th.attr('colspan', '4')
|
||||||
});
|
|
||||||
|
|
||||||
$('#rowsDeleteForm').find('tbody').find('th').each(function() {
|
|
||||||
if($(this).attr('colspan') == 3) {
|
|
||||||
$(this).attr('colspan', '4')
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user