From: Yoan Le Clanche Date: Thu, 10 Feb 2022 12:06:44 +0000 (+0100) Subject: Fix admin js errors X-Git-Tag: 2.5.1~3^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8030dc034f23a340afa336b58f96aec2a6973eca;p=teleforma.git Fix admin js errors --- 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)};