summaryrefslogtreecommitdiff
path: root/src/static/admin/js/jquery.init.js
diff options
context:
space:
mode:
authorckonstanski <kostcarl@isu.edu>2026-07-30 17:56:41 -0600
committerckonstanski <kostcarl@isu.edu>2026-07-30 17:56:41 -0600
commitcfb4bf6be1b18ec15cddbec1ea37e76176b1050b (patch)
tree1bbe88bca7ea6282296a9cfb16b6e52bd16c6f38 /src/static/admin/js/jquery.init.js
parentaeab73540c306e5f906bccc444c252d8ad2adc34 (diff)
initial commit
Diffstat (limited to 'src/static/admin/js/jquery.init.js')
-rw-r--r--src/static/admin/js/jquery.init.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/static/admin/js/jquery.init.js b/src/static/admin/js/jquery.init.js
new file mode 100644
index 0000000..f3ac162
--- /dev/null
+++ b/src/static/admin/js/jquery.init.js
@@ -0,0 +1,8 @@
+/*global django:true, jQuery:false*/
+/* 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);