summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2019-07-12 01:21:44 -0400
committerLauris BH <lauris@nix.lv>2019-07-12 08:21:44 +0300
commitefaee46b4df538e23367a7f4e2205f446b6c709b (patch)
treeac1e05d0a51641563e4e39a7cd50358a7f622a07 /templates
parent072bdfa3f50591863d523202e6d8a0fac0ca7ea7 (diff)
downloadgitea-efaee46b4df538e23367a7f4e2205f446b6c709b.tar.gz
gitea-efaee46b4df538e23367a7f4e2205f446b6c709b.zip
jQuery 3 (#7425)
* jquery 3 * use most recent version of migrate plugin * Delete .DS_Store * update service worker in case anyone has old version of jquery cached
Diffstat (limited to 'templates')
-rw-r--r--templates/base/footer.tmpl3
-rw-r--r--templates/pwa/serviceworker_js.tmpl3
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 5d1c2e9280..13718620da 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -12,7 +12,8 @@
{{template "base/footer_content" .}}
- <script src="{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js"></script>
+ <script src="{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1"></script>
+ <script src="{{AppSubUrl}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1"></script>
<script src="{{AppSubUrl}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js"></script>
{{if .RequireSimpleMDE}}
<script src="{{AppSubUrl}}/vendor/plugins/simplemde/simplemde.min.js"></script>
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl
index 5995fc3144..ee96cd5f68 100644
--- a/templates/pwa/serviceworker_js.tmpl
+++ b/templates/pwa/serviceworker_js.tmpl
@@ -2,7 +2,8 @@ var STATIC_CACHE = 'static-cache-v1';
var urlsToCache = [
// js
'{{AppSubUrl}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js',
- '{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js',
+ '{{AppSubUrl}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1',
+ '{{AppSubUrl}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1',
'{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.js',
'{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}',
'{{AppSubUrl}}/js/draw.js',