summaryrefslogtreecommitdiff
path: root/website/static/admin/js/jquery.init.js
diff options
context:
space:
mode:
authorprashantsinalkar2019-09-07 23:46:39 +0530
committerprashantsinalkar2019-09-07 23:46:39 +0530
commit0c926397cd40f5a424f5e409742d5c472506bbd8 (patch)
tree3dd2fa18922e2ee78fbf28cd8b96bfa4765df487 /website/static/admin/js/jquery.init.js
parent7724e55533e4c571dc66f12539803a1f1b70e0c5 (diff)
downloadR_on_Cloud_Web_Interface-0c926397cd40f5a424f5e409742d5c472506bbd8.tar.gz
R_on_Cloud_Web_Interface-0c926397cd40f5a424f5e409742d5c472506bbd8.tar.bz2
R_on_Cloud_Web_Interface-0c926397cd40f5a424f5e409742d5c472506bbd8.zip
added static
Diffstat (limited to 'website/static/admin/js/jquery.init.js')
-rw-r--r--website/static/admin/js/jquery.init.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/website/static/admin/js/jquery.init.js b/website/static/admin/js/jquery.init.js
new file mode 100644
index 0000000..f3ac162
--- /dev/null
+++ b/website/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);