Skip to content

Commit

Permalink
Merge pull request #191 from bkd-mba-fbi/develop
Browse files Browse the repository at this point in the history
v3.5.2
  • Loading branch information
schefbi authored Sep 4, 2024
2 parents a289c07 + c5ff02e commit 8d22cb5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# kursausschreibung 3.5.1
# kursausschreibung 3.5.2
[![Build 🏭🚀](https://github.com/bkd-mba-fbi/kursausschreibung/actions/workflows/buildDeploy.yml/badge.svg)](https://github.com/bkd-mba-fbi/kursausschreibung/actions/workflows/buildDeploy.yml)

# Documentation
Go to the [Wiki](https://github.com/bkd-mba-fbi/kursausschreibung/wiki)
Go to the [FBI GitBook docs](https://fbi-mba-bkd.gitbook.io/github-docs-public)

# How to implement in your page?

Expand Down
2 changes: 2 additions & 0 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Router = EmberRouter.extend({
scrollToTimeout(subscriptionProcessId);
} else if (this.currentPath === 'list.category.index' && screen.width <= 960) {
scrollToTimeout('headerCategory');
} else if (this.currentPath === 'list.category.event.index' && screen.width <= 960) {
scrollToTimeout('eventList');
} else if (this.currentPath !== 'list.index') {
scrollToTimeout(rootElement.id);
}
Expand Down
7 changes: 5 additions & 2 deletions app/routes/list/category/event/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ function loadDropdownItems(fields) {
.filter(item => item.dataType === 'dropdown')
.map(item => getDropDownItems(item.options.dropdownItems)
.then(options => {

if(item.id === 'Nationality') {
options.forEach(element => {
element.Value = element.Value.split(':')[1].trim();
});
let setDefaultLand = options;
let defaultLand = options.findIndex(nationality => nationality.Key === 2008100);
setDefaultLand.splice(0,0,options[defaultLand]);
}
}
if (item.id === 'Profession') {
item.dataType = 'freeform-dropdown'
}

if (item.options.options === undefined)
item.options.options = options;
Expand Down
2 changes: 1 addition & 1 deletion app/templates/list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
{{/unless}}

{{! CENTER }}
<div class="{{this.centerWidth}} center-container uk-margin-bottom">
<div id="eventList" class="{{this.centerWidth}} center-container uk-margin-bottom">
{{outlet}}
</div>

0 comments on commit 8d22cb5

Please sign in to comment.