From e1c68a6fcb9a956d5b2c5e7f5b3139da42a8d43d Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 11 Jan 2018 15:56:31 +0000 Subject: [PATCH] The configuration with shim is required for modal! But IE needs "define" instead of "requirejs" Former-commit-id: d256f8e3086a8635d82cc8ddbd0057e7a896acbb [formerly dfda47efcc688f226f99ce07544510a3095ae2c5] Former-commit-id: 4807d5f7b7a7814e8dd7dbef54bc20c3954a21ce --- www/js/init.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/js/init.js b/www/js/init.js index 82e68297..b64ae287 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -109,7 +109,15 @@ require.config({ //'jquery': 'jquery-3.2.1', //'bootstrap': 'bootstrap' 'bootstrap': 'bootstrap.min' + }, + shim: { + 'jquery': { + exports: '$' + }, + 'bootstrap': { + deps: ['jquery'] + } } }); -define(['../app']); +define(['bootstrap','../app']);