Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit c98350e

Browse files
committed
Merge branch 'release/2.2.0'
2 parents a21c081 + 958825c commit c98350e

24 files changed

+254
-501
lines changed

.stylelintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "C:/Users/VaLeXaR/AppData/Roaming/npm/node_modules/stylelint-config-wordpress"
2+
"extends": "C:/Program Files/nodejs/node_modules/stylelint-config-wordpress"
33
}

assets/scripts/additional-settings.js

-28
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@
33

44
$( function() {
55

6-
$('#set_default_language').click(function(){
7-
var button = $(this);
8-
var data = {
9-
action: 'wpm_set_default_language',
10-
security: wpm_additional_settings_params.set_default_language_nonce
11-
};
12-
13-
$.ajax({
14-
url: wpm_additional_settings_params.ajax_url,
15-
type: 'post',
16-
data: data,
17-
dataType: 'json',
18-
beforeSend: function() {
19-
button.prop('disabled', true).after('<span class="spinner is-active"></span>');
20-
},
21-
success: function (json) {
22-
button.next().remove();
23-
button.after('<span class="success">' + json + '</span>');
24-
},
25-
complete: function() {
26-
button.prop('disabled', false);
27-
},
28-
error: function (xhr, ajaxOptions, thrownError) {
29-
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
30-
}
31-
});
32-
});
33-
346
$('#wpm_installed_localizations').on('init_localizations', function(){
357
if ($(this).val()) {
368
$('#delete_localization').prop('disabled', false);

assets/scripts/additional-settings.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/styles/admin/admin.css

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/styles/admin/admin.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)