parent
729e6c924c
commit
cca93cd09e
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function($, data, wp){
|
(function($, data, wp){
|
||||||
var rowTemplate = wp.template( 'tax-table-row' ),
|
var rowTemplate = wp.template( 'wc-tax-table-row' ),
|
||||||
$ratesTbody = $('#rates');
|
$ratesTbody = $('#rates');
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
|
@ -79,7 +79,7 @@ wp_enqueue_script( 'htmlSettingsTaxLocalizeScript' );
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl-tax-table-row">
|
<script type="text/html" id="tmpl-wc-tax-table-row">
|
||||||
<tr class="tips" data-tip="<?php echo esc_attr( sprintf( __( 'Tax rate ID: %s', 'woocommerce' ), '{{ data.tax_rate_id }}' ) ); ?>">
|
<tr class="tips" data-tip="<?php echo esc_attr( sprintf( __( 'Tax rate ID: %s', 'woocommerce' ), '{{ data.tax_rate_id }}' ) ); ?>">
|
||||||
<td class="sort">
|
<td class="sort">
|
||||||
<# if ( ! data.new ) { #>
|
<# if ( ! data.new ) { #>
|
||||||
|
@ -196,7 +196,7 @@ wp_enqueue_script( 'htmlSettingsTaxLocalizeScript' );
|
||||||
jQuery('.wc_tax_rates .insert').click(function() {
|
jQuery('.wc_tax_rates .insert').click(function() {
|
||||||
var $tbody = jQuery('.wc_tax_rates').find('tbody');
|
var $tbody = jQuery('.wc_tax_rates').find('tbody');
|
||||||
var size = $tbody.find('tr').size();
|
var size = $tbody.find('tr').size();
|
||||||
var code = wp.template( 'tax-table-row' )( {
|
var code = wp.template( 'wc-tax-table-row' )( {
|
||||||
tax_rate_id : 'new-' + size,
|
tax_rate_id : 'new-' + size,
|
||||||
tax_rate_priority : 1,
|
tax_rate_priority : 1,
|
||||||
tax_rate_shipping : 1,
|
tax_rate_shipping : 1,
|
||||||
|
|
Loading…
Reference in New Issue