Commit 81b7af19 by Jansa Jose

change filter code

parent e67faa85
<div class="purchase_taskbar"> <div class="purchase_taskbar">
<div class="purchase_searchbar"> <div class="purchase_searchbar">
<div class="purchase_inner_search_bar" [class.redLine]="searchLine == 1"> <div class="purchase_inner_search_bar">
<input #productSearch type="text" placeholder="Search here" (keyup)="productSearchfun(productSearch.value)"> <input #productSearch type="text" placeholder="Search here" (keyup)="productSearchfun(productSearch.value)">
<button class="search_btn" (click)="productSearchFunClick(productSearch.value)">Search</button> <button class="search_btn" (click)="productSearchFunClick(productSearch.value)">Search</button>
<div class="clear"></div> <div class="clear"></div>
......
...@@ -16,8 +16,6 @@ export class SearchbarComponent implements OnInit { ...@@ -16,8 +16,6 @@ export class SearchbarComponent implements OnInit {
imageServer: string; imageServer: string;
loginDetails:any; loginDetails:any;
searchLine:any;
public scrollbarOptions = { axis: 'y', theme: 'minimal-dark' }; public scrollbarOptions = { axis: 'y', theme: 'minimal-dark' };
@ViewChild("productSearch") public productSearchRef: ElementRef; @ViewChild("productSearch") public productSearchRef: ElementRef;
...@@ -28,7 +26,6 @@ export class SearchbarComponent implements OnInit { ...@@ -28,7 +26,6 @@ export class SearchbarComponent implements OnInit {
public subjectService : SubjectService) { public subjectService : SubjectService) {
this.productArray = true; this.productArray = true;
this.imageServer = ImageStorage; this.imageServer = ImageStorage;
this.searchLine = 0;
} }
ngOnInit() { ngOnInit() {
...@@ -36,7 +33,8 @@ export class SearchbarComponent implements OnInit { ...@@ -36,7 +33,8 @@ export class SearchbarComponent implements OnInit {
} }
gotosearch(){ gotosearch(){
this.searchLine = !this.searchLine; this.productArray = false;
this.goToPage('productlist',{"key":' '});
} }
checkUserLogin(){ checkUserLogin(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment