plugin updates

This commit is contained in:
Tony Volpe
2024-09-05 11:04:01 -04:00
parent ed6b060261
commit 50cd64dd3d
925 changed files with 16918 additions and 13003 deletions

View File

@@ -292,16 +292,49 @@
'i18n_sale_less_than_regular_error',
] );
} else {
$(
document.body
).triggerHandler( 'wc_remove_error_tip', [
$( this ),
'i18n_sale_less_than_regular_error',
] );
$( document.body ).triggerHandler(
'wc_remove_error_tip',
[ $( this ), 'i18n_sale_less_than_regular_error' ]
);
}
}
)
.on(
'keyup',
'input[type=text][name*=_global_unique_id]',
function () {
var global_unique_id = $( this ).val();
if ( /[^0-9\-]/.test( global_unique_id ) ) {
$( document.body ).triggerHandler( 'wc_add_error_tip', [
$( this ),
'i18n_global_unique_id_error',
] );
} else {
$( document.body ).triggerHandler(
'wc_remove_error_tip',
[ $( this ), 'i18n_global_unique_id_error' ]
);
}
}
)
.on(
'change',
'input[type=text][name*=_global_unique_id]',
function () {
var global_unique_id = $( this ).val();
$( this ).val(
global_unique_id.replace( /[^0-9\-]/g, '' )
);
$( document.body ).triggerHandler(
'wc_remove_error_tip',
[ $( this ), 'i18n_global_unique_id_error' ]
);
}
)
.on( 'init_tooltips', function () {
$( '.tips, .help_tip, .woocommerce-help-tip' ).tipTip( {
attribute: 'data-tip',