From dac0acbf0343534c04498cdbe9839bc33d1faa9e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 28 Jun 2022 11:22:12 +0200 Subject: [PATCH] (feat) removed the admins' button to scroll to the featured event --- CHANGELOG.md | 2 ++ app/frontend/src/javascript/controllers/events.js.erb | 9 --------- app/frontend/templates/events/index.html | 3 --- config/locales/app.public.en.yml | 1 - 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71bbc3103..5bcb21d71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## next deploy +- Removed the admins' button to scroll to the featured event + ## v5.4.6 2022 June 27 - Fix a bug: unable to run yq in deployment scripts diff --git a/app/frontend/src/javascript/controllers/events.js.erb b/app/frontend/src/javascript/controllers/events.js.erb index 7a6098be2..5cea78fdb 100644 --- a/app/frontend/src/javascript/controllers/events.js.erb +++ b/app/frontend/src/javascript/controllers/events.js.erb @@ -95,15 +95,6 @@ Application.Controllers.controller('EventsController', ['$scope', '$state', 'Eve */ $scope.onSingleDay = function (event) { moment(event.start_date).isSame(event.end_date, 'day'); }; - /** - * Move down the viewport to the featured event - */ - $scope.scrollToFeaturedEvent = function () { - const card = document.getElementsByClassName('featured-event')[0]; - if (card) { - card.childNodes[0].scrollIntoView({ behavior: 'smooth', block: 'center' }); - } - } /* PRIVATE SCOPE */ diff --git a/app/frontend/templates/events/index.html b/app/frontend/templates/events/index.html index b45ebb330..2febc389c 100644 --- a/app/frontend/templates/events/index.html +++ b/app/frontend/templates/events/index.html @@ -47,9 +47,6 @@ ui-sref="app.public.events_show({id: featuredEevent.id})"> -
- -

{{monthNames[month.split(',')[0] - 1]}}, {{month.split(',')[1]}}

diff --git a/config/locales/app.public.en.yml b/config/locales/app.public.en.yml index 5536b04fb..24f1fd946 100644 --- a/config/locales/app.public.en.yml +++ b/config/locales/app.public.en.yml @@ -291,7 +291,6 @@ en: full_price_: "Full price:" to_date: "to" #eg. from 01/01 to 01/05 all_themes: "All themes" - show_featured: "Show the featured event" #details and booking of an event events_show: event_description: "Event description"