summaryrefslogtreecommitdiff
path: root/production_static_files/admin/js/jquery.init.js
diff options
context:
space:
mode:
Diffstat (limited to 'production_static_files/admin/js/jquery.init.js')
-rw-r--r--production_static_files/admin/js/jquery.init.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/production_static_files/admin/js/jquery.init.js b/production_static_files/admin/js/jquery.init.js
new file mode 100644
index 0000000..22a4c8b
--- /dev/null
+++ b/production_static_files/admin/js/jquery.init.js
@@ -0,0 +1,7 @@
+/* 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).
+ */
+var django = django || {};
+django.jQuery = jQuery.noConflict(true);