rename all instances of 'datas' to 'data'

This commit is contained in:
osaajani 2021-01-17 03:16:57 +01:00
parent 730ac8963b
commit 61d644c247
48 changed files with 316 additions and 316 deletions

View file

@ -256,7 +256,7 @@
var id_contact = jQuery(this).parents('.scheduled-preview-container').find('select').val();
var template = jQuery(this).parents('.form-group').find('textarea').val();
var datas = {
var data = {
'id_contact' : id_contact,
'template' : template,
};
@ -264,9 +264,9 @@
jQuery.ajax({
type: "POST",
url: HTTP_PWD + '/template/preview',
data: datas,
success: function (datas) {
jQuery('#scheduled-preview-text-modal').find('.modal-body pre').text(datas.result);
data: data,
success: function (data) {
jQuery('#scheduled-preview-text-modal').find('.modal-body pre').text(data.result);
jQuery('#scheduled-preview-text-modal').modal({'keyboard': true});
},
dataType: 'json'