From cf12edb86124d6535c8d548cd18803fb319acbb8 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Tue, 19 May 2020 18:59:03 +0800 Subject: [PATCH 1/4] Use IE11-compatible code for worker deregistration. (#5079) Fixes #5078. --- modules/backend/layouts/_head.htm | 6 +++--- modules/backend/layouts/auth.htm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/backend/layouts/_head.htm b/modules/backend/layouts/_head.htm index d4b2518b8..6b0bb19f5 100644 --- a/modules/backend/layouts/_head.htm +++ b/modules/backend/layouts/_head.htm @@ -59,10 +59,10 @@ if (location.protocol === 'https:') { // Unregister all service workers before signing in to prevent cache issues, see github issue: #3707 navigator.serviceWorker.getRegistrations().then( - function(registrations) { - for (let registration of registrations) { + function (registrations) { + registrations.forEach(function (registration) { registration.unregister(); - } + }); } ); } diff --git a/modules/backend/layouts/auth.htm b/modules/backend/layouts/auth.htm index 5b66888aa..344e11e37 100644 --- a/modules/backend/layouts/auth.htm +++ b/modules/backend/layouts/auth.htm @@ -46,10 +46,10 @@ if (location.protocol === 'https:') { // Unregister all service workers before signing in to prevent cache issues, see github issue: #3707 navigator.serviceWorker.getRegistrations().then( - function(registrations) { - for (let registration of registrations) { + function (registrations) { + registrations.forEach(function (registration) { registration.unregister(); - } + }); } ); } From 7af73a0ade3e85cd322959c8d996cca9c0d84c65 Mon Sep 17 00:00:00 2001 From: Nick Khaetsky Date: Tue, 19 May 2020 20:16:49 +0300 Subject: [PATCH 2/4] Add "Install themes" button on updates page (#5075) Very often in our community people asking question:"How do i install theme from marketplace?" And to answer that question we should say "Just press Install plugins button!" That's not very intuitive for beginners. This PR adds one button that leads right to themes installation page. --- modules/system/controllers/updates/_list_toolbar.htm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/system/controllers/updates/_list_toolbar.htm b/modules/system/controllers/updates/_list_toolbar.htm index 0de962934..fc32bc329 100644 --- a/modules/system/controllers/updates/_list_toolbar.htm +++ b/modules/system/controllers/updates/_list_toolbar.htm @@ -6,6 +6,11 @@ data-handler="onLoadUpdates"> + + + From 386eb9bc5b90532f8b773d9503c543966f48ec84 Mon Sep 17 00:00:00 2001 From: Romain 'Maz' BILLOIR Date: Thu, 21 May 2020 15:49:48 +0200 Subject: [PATCH 3/4] Fix double dash typo on data-ajax-delay (#5082) --- modules/system/assets/ui/docs/select.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/ui/docs/select.md b/modules/system/assets/ui/docs/select.md index 871698389..b31804f9f 100644 --- a/modules/system/assets/ui/docs/select.md +++ b/modules/system/assets/ui/docs/select.md @@ -66,7 +66,7 @@ Use the `data-handler` attribute to source the select options from an AJAX handl class="form-control custom-select" data-handler="onGetOptions" data-minimum-input-length="2" - data-ajax--delay="300" + data-ajax-delay="300" data-request-data="foo: 'bar'" > ``` From eba8e6c1b85ce1f295878ea0c13e7ae294ab4d10 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Thu, 21 May 2020 09:46:06 -0600 Subject: [PATCH 4/4] Revert "Fix double dash typo on data-ajax-delay (#5082)" (#5083) This reverts commit 386eb9bc5b90532f8b773d9503c543966f48ec84. --- modules/system/assets/ui/docs/select.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/ui/docs/select.md b/modules/system/assets/ui/docs/select.md index b31804f9f..871698389 100644 --- a/modules/system/assets/ui/docs/select.md +++ b/modules/system/assets/ui/docs/select.md @@ -66,7 +66,7 @@ Use the `data-handler` attribute to source the select options from an AJAX handl class="form-control custom-select" data-handler="onGetOptions" data-minimum-input-length="2" - data-ajax-delay="300" + data-ajax--delay="300" data-request-data="foo: 'bar'" > ```