summaryrefslogtreecommitdiff
path: root/static/admin/js/jquery.init.js
diff options
context:
space:
mode:
authorAkshen2019-03-05 11:53:37 +0530
committerGitHub2019-03-05 11:53:37 +0530
commitd2867b9f320ab823f0d40ed948867019e172ee79 (patch)
tree72b1f971823ecb1aed88ce793c69921f66e4291e /static/admin/js/jquery.init.js
parentdd647ee3f5c0eb77fc04024c9864cd69a963bc16 (diff)
parentefda4b675ab162346a72abf0ceee29cfc0f99001 (diff)
downloadFOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.tar.gz
FOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.tar.bz2
FOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.zip
Merge pull request #1 from Akshen/develop
Develop
Diffstat (limited to 'static/admin/js/jquery.init.js')
-rw-r--r--static/admin/js/jquery.init.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/admin/js/jquery.init.js b/static/admin/js/jquery.init.js
new file mode 100644
index 0000000..f3ac162
--- /dev/null
+++ b/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);