Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055)

- Removed jQuery-Migrate as it seems to no longer be needed.
- Removed a dead code section.
- Fixed some deprecations detected by jQuery-Migrate.

Ref: https://jquery.com/upgrade-guide/3.5/
Ref: https://github.com/gogs/gogs/search?q=repo-name-change-prompt
Ref: https://github.com/go-gitea/gitea/search?q=repo-name-change-prompt
Fixes: https://github.com/go-gitea/gitea/issues/9372

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
silverwind 2020-04-19 00:46:29 +02:00 committed by GitHub
parent 4be7cf0405
commit b57a735e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 115 additions and 137 deletions

View file

@ -1,5 +1,3 @@
import $ from 'jquery';
import 'jquery-migrate';
$.migrateMute = true;
window.$ = window.jQuery = $;