Commit 81b7af19 by Jansa Jose

change filter code

parent e67faa85
<div class="purchase_taskbar">
<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)">
<button class="search_btn" (click)="productSearchFunClick(productSearch.value)">Search</button>
<div class="clear"></div>
......
......@@ -16,8 +16,6 @@ export class SearchbarComponent implements OnInit {
imageServer: string;
loginDetails:any;
searchLine:any;
public scrollbarOptions = { axis: 'y', theme: 'minimal-dark' };
@ViewChild("productSearch") public productSearchRef: ElementRef;
......@@ -28,7 +26,6 @@ export class SearchbarComponent implements OnInit {
public subjectService : SubjectService) {
this.productArray = true;
this.imageServer = ImageStorage;
this.searchLine = 0;
}
ngOnInit() {
......@@ -36,7 +33,8 @@ export class SearchbarComponent implements OnInit {
}
gotosearch(){
this.searchLine = !this.searchLine;
this.productArray = false;
this.goToPage('productlist',{"key":' '});
}
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