on passe en data-ajaxreload le nom du bloc à recharger
This commit is contained in:
parent
017391af7c
commit
90f96a5a0d
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,8 @@ jQuery(function () {
|
||||||
}
|
}
|
||||||
let url = $(this).attr('href');
|
let url = $(this).attr('href');
|
||||||
let id = $(this).data('id');
|
let id = $(this).data('id');
|
||||||
|
let nomBlocAjaxReload = $(this).data('ajaxreload');
|
||||||
|
console.log('nom ', nomBlocAjaxReload);
|
||||||
console.time('Chargement de VueJs APRES Ajax');
|
console.time('Chargement de VueJs APRES Ajax');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
|
|
|
@ -36,6 +36,8 @@ jQuery(function () {
|
||||||
|
|
||||||
var url = $(this).attr('href');
|
var url = $(this).attr('href');
|
||||||
var id = $(this).data('id');
|
var id = $(this).data('id');
|
||||||
|
var nomBlocAjaxReload = $(this).data('ajaxreload');
|
||||||
|
console.log('nom ', nomBlocAjaxReload);
|
||||||
console.time('Chargement de VueJs APRES Ajax');
|
console.time('Chargement de VueJs APRES Ajax');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
|
@ -266,7 +268,6 @@ var monTableau = {
|
||||||
fetch(this.urlvuebloc).then(function (response) {
|
fetch(this.urlvuebloc).then(function (response) {
|
||||||
return response.text();
|
return response.text();
|
||||||
}).then(function (data) {
|
}).then(function (data) {
|
||||||
console.log(data);
|
|
||||||
_this.vuebloc = data;
|
_this.vuebloc = data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue