summaryrefslogtreecommitdiffstats
path: root/web_src/js/jquery.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-01-21 18:32:33 +0100
committerLauris BH <lauris@nix.lv>2020-01-21 19:32:33 +0200
commit2982afe6b498f9d61bd48407c5408299a1cbbc60 (patch)
tree391483c055d7a657968c8da4af63f9908adbcf77 /web_src/js/jquery.js
parent0e8b27afe8aaa9055be24f71e8543f2701f18291 (diff)
downloadgitea-2982afe6b498f9d61bd48407c5408299a1cbbc60.tar.gz
gitea-2982afe6b498f9d61bd48407c5408299a1cbbc60.zip
move jquery and jquery-migrate to npm/webpack (#9813)
Currently, this needs to be its own chunk because fomantic depends on jQuery being present. The next step is to move fomantic to webpack too after which we can combine the index,fomantic and jquery files into one. jquery-migrate is still neccessary because our ancient version of Dropzone seems to break without it. I imagine it can be removed after a Dropzone upgrade.
Diffstat (limited to 'web_src/js/jquery.js')
-rw-r--r--web_src/js/jquery.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/jquery.js b/web_src/js/jquery.js
new file mode 100644
index 0000000000..f2932dbfa4
--- /dev/null
+++ b/web_src/js/jquery.js
@@ -0,0 +1,5 @@
+import $ from 'jquery';
+import 'jquery-migrate';
+
+$.migrateMute = true;
+window.$ = window.jQuery = $;