From 90f96a5a0d645d3466ea929366c28519a5838948 Mon Sep 17 00:00:00 2001 From: tofulm Date: Fri, 30 Oct 2020 09:39:38 +0100 Subject: [PATCH] =?UTF-8?q?on=20passe=20en=20data-ajaxreload=20le=20nom=20?= =?UTF-8?q?du=20bloc=20=C3=A0=20recharger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/gamutable.es6.js | 2 ++ js/gamutable.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 457df99..9a70f8c 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -12,6 +12,8 @@ jQuery(function () { } let url = $(this).attr('href'); let id = $(this).data('id'); + let nomBlocAjaxReload = $(this).data('ajaxreload'); + console.log('nom ', nomBlocAjaxReload); console.time('Chargement de VueJs APRES Ajax'); $.ajax({ url: url, diff --git a/js/gamutable.js b/js/gamutable.js index f9951dc..28ec415 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -36,6 +36,8 @@ jQuery(function () { var url = $(this).attr('href'); var id = $(this).data('id'); + var nomBlocAjaxReload = $(this).data('ajaxreload'); + console.log('nom ', nomBlocAjaxReload); console.time('Chargement de VueJs APRES Ajax'); $.ajax({ url: url, @@ -266,7 +268,6 @@ var monTableau = { fetch(this.urlvuebloc).then(function (response) { return response.text(); }).then(function (data) { - console.log(data); _this.vuebloc = data; }); }