From 451951a3c0b3237b0963e92cd570b0a21aeec6fb Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Mon, 23 Jan 2017 13:51:33 +0000 Subject: [PATCH] Change click event to work in chrome src/app/searchPages/searchUtils/advancedSearchForm.component.ts git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@45538 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../advancedSearchForm.component.ts | 40 ++++--------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/portal-2/src/app/searchPages/searchUtils/advancedSearchForm.component.ts b/portal-2/src/app/searchPages/searchUtils/advancedSearchForm.component.ts index 0af56cc6..b59d8792 100644 --- a/portal-2/src/app/searchPages/searchUtils/advancedSearchForm.component.ts +++ b/portal-2/src/app/searchPages/searchUtils/advancedSearchForm.component.ts @@ -15,11 +15,11 @@ import {Dates} from '../../utils/string-utils.class'; Search for: - + - + -
- - - - -
- -
@@ -88,7 +66,6 @@ import {Dates} from '../../utils/string-utils.class'; ` }) -///[style.width]="'120px'" export class AdvancedSearchFormComponent { @Input() entityType; @Input() fieldIds: string[]; @@ -148,9 +125,8 @@ export class AdvancedSearchFormComponent { this.selectedFields[index].valid = Dates.isValidYear(value); } - fieldIdsChanged(index: number,id) { - console.info('changed: index'+index+" id :"+id); - this.selectedFields[index].id = id; + fieldIdsChanged(index: number) { + var id =this.selectedFields[index].id; this.selectedFields[index].name = this.fieldIdsMap[id].name; this.selectedFields[index].type = this.fieldIdsMap[id].type; this.selectedFields[index].value = ""; @@ -158,8 +134,6 @@ export class AdvancedSearchFormComponent { if(this.fieldIdsMap[id].type == "boolean"){ this.selectedFields[index].value = "true"; } - console.info('changed:' +this.selectedFields[index].name+" "+this.selectedFields[index].type+" "+ this.selectedFields[index].param ); - } valueChanged($event,index:number){ this.selectedFields[index].value = $event.value;