From 1914c22625a1c79802ac350b4563e3b535bedd82 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 20 Jan 2017 17:03:01 +0000 Subject: [PATCH] fixing order of filters git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@45520 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../searchPages/searchUtils/searchPage.component.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts index 6c161406..f16a7210 100644 --- a/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts +++ b/portal-2/src/app/searchPages/searchUtils/searchPage.component.ts @@ -25,7 +25,7 @@ import {ModalLoading} from '../../utils/modal/loading.component'; {{filter.title}}: - {{value.name}} + {{value.name}} , @@ -480,5 +480,16 @@ export class SearchPageComponent { this.loading.close(); } } + getSelectedValues(filter):any{ + var selected = []; + if(filter.countSelectedValues >0){ + for (var i=0; i < filter.values.length; i++){ + if(filter.values[i].selected){ + selected.push(filter.values[i]); + } + } + } + return selected; + } }