woocommerce/assets/js/admin/settings-views-html-setting...

16 lines
395 B
JavaScript
Raw Normal View History

/**
* Used by woocommerce/includes/admin/settings/views/html-settings-tax.php
*/
(function($, data, wp){
var rowTemplate = wp.template( 'wc-tax-table-row' ),
$ratesTbody = $('#rates');
$(function() {
$ratesTbody.innerHTML = '';
$.each( data.rates, function ( id, rowData ) {
$ratesTbody.append( rowTemplate( rowData ) );
} );
});
})(jQuery, htmlSettingsTaxLocalizeScript, wp);