]> git.parisson.com Git - teleforma.git/commitdiff
Fix admin js errors
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 10 Feb 2022 12:06:44 +0000 (13:06 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 10 Feb 2022 12:06:44 +0000 (13:06 +0100)
teleforma/static/admin/js/jquery.init.js [new file with mode: 0644]

diff --git a/teleforma/static/admin/js/jquery.init.js b/teleforma/static/admin/js/jquery.init.js
new file mode 100644 (file)
index 0000000..8f2a0a7
--- /dev/null
@@ -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)};