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,58 @@
/*globals jQuery, ajaxurl, wpml_st_disable_notices_strings */
function wpml_st_hide_strings_scan_notices(element, callback) {
"use strict";
var buttonNo = wpml_st_disable_notices_strings.no;
var buttonYes = wpml_st_disable_notices_strings.yes;
var dialog = jQuery('<div title="' + wpml_st_disable_notices_strings.title + '"><p>' + wpml_st_disable_notices_strings.message + '</p></div>');
dialog.css('display', 'none');
dialog.dialog({
resizable: false,
height: "auto",
width: "auto",
modal: true,
buttons: {
buttonNo: {
text: buttonNo,
click: function () {
if (typeof callback === 'function') {
callback();
}
dialog.dialog("close");
}
},
buttonYes: {
text: buttonYes,
class: 'button-primary',
click: function () {
jQuery.ajax({
url: ajaxurl,
type: 'POST',
data: {
action: 'hide_strings_scan_notices'
},
dataType: 'json',
complete: function () {
if (typeof callback === 'function') {
callback();
}
dialog.dialog("close");
}
});
}
}
},
open: function () {
jQuery('#jquery-ui-style-css').prop('disabled', true);
jQuery('.ui-widget-overlay.ui-front').css('z-index', '10001');
jQuery('.ui-dialog').css('z-index', '10002');
},
close: function () {
jQuery('#jquery-ui-style-css').prop('disabled', false);
}
});
}