Inline documentation explaining some functionality.
This commit is contained in:
parent
55e0bb6302
commit
846dcb95c6
|
@ -116,6 +116,9 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Postcode and city don't have `name` values by default. They're only created if the contents changes, to save on database queries (I think)
|
||||||
|
*/
|
||||||
$('.wc_tax_rates td.postcode, .wc_tax_rates td.city').find('input').change(function() {
|
$('.wc_tax_rates td.postcode, .wc_tax_rates td.city').find('input').change(function() {
|
||||||
$(this).attr( 'name', $(this).attr( 'data-name' ) );
|
$(this).attr( 'name', $(this).attr( 'data-name' ) );
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue