Change variable name to consistent `$tbody`
This commit is contained in:
parent
64f48f8706
commit
b0a485a5e6
|
@ -4,12 +4,12 @@
|
|||
|
||||
(function($, data, wp){
|
||||
var rowTemplate = wp.template( 'wc-tax-table-row' ),
|
||||
$ratesTbody = $('#rates');
|
||||
$tbody = $('#rates');
|
||||
|
||||
$(function() {
|
||||
$ratesTbody.innerHTML = '';
|
||||
$tbody.innerHTML = '';
|
||||
$.each( data.rates, function ( id, rowData ) {
|
||||
$ratesTbody.append( rowTemplate( rowData ) );
|
||||
$tbody.append( rowTemplate( rowData ) );
|
||||
} );
|
||||
});
|
||||
})(jQuery, htmlSettingsTaxLocalizeScript, wp);
|
||||
|
|
Loading…
Reference in New Issue