HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/sitepress-multilingual-cms/res/js/refresh-services.js
/*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 );
			}
		});
	})
});