mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
rename all instances of 'datas' to 'data'
This commit is contained in:
parent
730ac8963b
commit
61d644c247
48 changed files with 316 additions and 316 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue