Skip to content

Commit

Permalink
scroll to kursCategoryHeader #186
Browse files Browse the repository at this point in the history
  • Loading branch information
schefbi committed Aug 30, 2024
1 parent 1735abf commit 4c9caec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const Router = EmberRouter.extend({

if (this.currentPath === 'list.category.event.subscribe') {
scrollToTimeout(subscriptionProcessId);
} else if (this.currentPath !== 'list.category' && screen.width <= 960) {
scrollToTimeout('headerCategory');
} else if (this.currentPath !== 'list.index') {
scrollToTimeout(rootElement.id);
}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/area-navigation.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#unless this.hideHeading}}
<h3 id="header-naviagtion-area" class="uk-margin-small">{{this.area.name}}</h3>
<h3 id="header-naviagtion-area" class="uk-margin-small">{{translate "kursCategoryHeader"}}</h3>
{{/unless}}
<ul class="uk-nav uk-nav-default">
<li>
Expand Down
1 change: 1 addition & 0 deletions public/locale/de-CH.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ window.kursausschreibung.locale["de-CH"] = {
"french": "Französisch",
"menu": "Menu",
"navigation": "Navigation",
"kursCategoryHeader": "Kategorie",
"personalData": "Personendaten",
"confirmation": "Bestätigung",
"subscribe": "Anmelden",
Expand Down
1 change: 1 addition & 0 deletions public/locale/fr-CH.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ window.kursausschreibung.locale["fr-CH"] = {
"french": "Français",
"menu": "Menu",
"navigation": "Navigation",
"kursCategoryHeader": "Categorie",
"personalData": "Informations personnelles",
"confirmation": "Acceptation",
"subscribe": "Inscription",
Expand Down

0 comments on commit 4c9caec

Please sign in to comment.