diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 1c346bd..719cdb3 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -60,7 +60,9 @@ jQuery(function () { url += '&largeur=' + valeur_reduite + 'px'; } data.onShow = () => { - jQuery.getScript('local/mon_site.js'); + if (typeof charger_require !== undefined) { + charger_require(); + } }; $.modalbox(url, data); }); diff --git a/js/gamutable.js b/js/gamutable.js index 2c3457d..f362e8b 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -20,6 +20,8 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !( function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + jQuery(function () { // pour les #URL_ACTION_AUTEUR // il faut ajouter une class : url_action @@ -94,7 +96,9 @@ jQuery(function () { } data.onShow = function () { - jQuery.getScript('local/mon_site.js'); + if ((typeof charger_require === "undefined" ? "undefined" : _typeof(charger_require)) !== undefined) { + charger_require(); + } }; $.modalbox(url, data);