20 lines
733 B
JavaScript
20 lines
733 B
JavaScript
jQuery(function () {
|
|
jQuery('#wpml_fix_tp_id_btn').click(function () {
|
|
jQuery(this).prop('disabled', true);
|
|
jQuery(this).after('<span class="wpml-fix-tp-id-spinner">' + icl_ajxloaderimg + '</span>');
|
|
jQuery.ajax({
|
|
url : ajaxurl,
|
|
type: 'POST',
|
|
data: {
|
|
job_ids: jQuery('#wpml_fix_tp_id_text').val(),
|
|
action : 'wpml-fix-translation-jobs-tp-id',
|
|
nonce : jQuery('#wpml-fix-tp-id-nonce').val(),
|
|
},
|
|
success: function () {
|
|
jQuery('#wpml_fix_tp_id_btn').prop('disabled', false);
|
|
jQuery('.wpml-fix-tp-id-spinner').remove();
|
|
}
|
|
});
|
|
});
|
|
});
|