first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/*globals jQuery, ajaxurl*/
jQuery(function () {
"use strict";
jQuery('#wpml-tm-refresh-services').click(function () {
var button = jQuery(this);
button.prop('disabled', true);
jQuery.ajax({
type: "POST",
url : ajaxurl,
data: {
'nonce': jQuery(this).data('nonce'),
'action': 'wpml_tm_refresh_services'
},
dataType: 'json',
success: function ( res ) {
button.prop( 'disabled', true );
jQuery( '.wpml-tm-refresh-services-msg' ).html( res.data.message );
}
});
})
});