diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 754ed7c..76f458a 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -1,19 +1,15 @@ jQuery(function() { - gamutable(); - //onAjaxLoad(gamutable); - function gamutable() { - $('#app').on('click', '.url_action', function(e) { - e.preventDefault(); - e.stopPropagation(); - let url = $(this).attr('href'); - $.ajax({ - url: url, - async: true - }).done(function() { - app.rechargerJson(); - }); + $('#app').on('click', '.url_action', function(e) { + e.preventDefault(); + e.stopPropagation(); + let url = $(this).attr('href'); + $.ajax({ + url: url, + async: true + }).done(function() { + app.rechargerJson(); }); - } + }); }); function recupJson(d) { try { diff --git a/js/gamutable.js b/js/gamutable.js index 59bb0e4..cf36773 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -9,21 +9,17 @@ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } jQuery(function () { - gamutable(); //onAjaxLoad(gamutable); - - function gamutable() { - $('#app').on('click', '.url_action', function (e) { - e.preventDefault(); - e.stopPropagation(); - var url = $(this).attr('href'); - $.ajax({ - url: url, - async: true - }).done(function () { - app.rechargerJson(); - }); + $('#app').on('click', '.url_action', function (e) { + e.preventDefault(); + e.stopPropagation(); + var url = $(this).attr('href'); + $.ajax({ + url: url, + async: true + }).done(function () { + app.rechargerJson(); }); - } + }); }); function recupJson(d) {