rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -466,6 +466,10 @@
value = optionElement.data('enabledToggleValue');
}
if (option === undefined) {
return;
}
var originalValue = optionElement.data('originalToggleValue');
if (originalValue == value) {
delete WFAD.pendingChanges[option];
@@ -510,6 +514,10 @@
var optionElement = $(this).closest('.wf-option');
var option = optionElement.data('selectOption');
var value = $(this).val();
if (option === undefined) {
return;
}
var originalValue = optionElement.data('originalSelectValue');
if (originalValue == value) {
@@ -820,6 +828,35 @@
}
});
},
wordfenceSatisfactionChoice: function(choice) {
if (choice == 'yes') {
$('#wordfenceSatisfactionPrompt-yes').slideDown(400, function() {
$('#wordfenceSatisfactionPrompt-initial .wf-btn').addClass('wf-disabled').css('opacity', 0.3);
$('#wordfenceSatisfactionPrompt-initial .wf-btn:first-of-type').css('opacity', 0.8);
});
WFAD.ajax('wordfence_wordfenceSatisfactionChoice', {choice: choice});
}
else if (choice == 'no') {
$('#wordfenceSatisfactionPrompt-no').slideDown(400, function() {
$('#wordfenceSatisfactionPrompt-initial .wf-btn').addClass('wf-disabled').css('opacity', 0.3);
$('#wordfenceSatisfactionPrompt-initial .wf-btn:last-of-type').css('opacity', 0.8);
});
WFAD.ajax('wordfence_wordfenceSatisfactionChoice', {choice: choice});
}
else if (choice == 'feedback') {
WFAD.ajax('wordfence_wordfenceSatisfactionChoice', {
choice: choice,
feedback: $('#wordfenceSatisfactionPrompt-feedback').val(),
},
function(res) { $('#wordfenceSatisfactionPrompt-no').fadeOut(); $('#wordfenceSatisfactionPrompt-complete').fadeIn(); },
function() { $('#wordfenceSatisfactionPrompt-no').fadeOut(); $('#wordfenceSatisfactionPrompt-complete').fadeIn(); }
);
}
else if (choice == 'dismiss') {
$('#wordfenceSatisfactionPrompt').fadeOut();
WFAD.ajax('wordfence_wordfenceSatisfactionChoice', {choice: choice});
}
},
tourFinish: function(page) {
if (WFAD.currentPointer) {
WFAD.currentPointer.pointer('destroy');