From 8030dc034f23a340afa336b58f96aec2a6973eca Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 10 Feb 2022 13:06:44 +0100 Subject: [PATCH] Fix admin js errors --- teleforma/static/admin/js/jquery.init.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 teleforma/static/admin/js/jquery.init.js diff --git a/teleforma/static/admin/js/jquery.init.js b/teleforma/static/admin/js/jquery.init.js new file mode 100644 index 00000000..8f2a0a70 --- /dev/null +++ b/teleforma/static/admin/js/jquery.init.js @@ -0,0 +1,8 @@ +/*global jQuery:false*/ +'use strict'; +/* Puts the included jQuery into our own namespace using noConflict and passing + * it 'true'. This ensures that the included jQuery doesn't pollute the global + * namespace (i.e. this preserves pre-existing values for both window.$ and + * window.jQuery). + */ +window.django = {jQuery: $.noConflict(true)}; -- 2.39.5