Commit c30854c7 authored by Ziwen Su's avatar Ziwen Su

Changed some names.

parent 89e27c19
......@@ -265,11 +265,11 @@ export class SearchComponent implements OnInit {
this.jobstatus = searchStorage['STATUS'];
if ( searchStorage['TAGS'] ) {
this.jobtag_sum = Number(searchStorage['TAGS']);
this.jobtag_bool[0] = (localStorage.getItem('JTAGA'))==='true';
this.jobtag_bool[1] = (localStorage.getItem('JTAGB'))==='true';
this.jobtag_bool[2] = (localStorage.getItem('JTAGC'))==='true';
this.jobtag_bool[3] = (localStorage.getItem('JTAGD'))==='true';
this.jobtag_bool[4] = (localStorage.getItem('JTAGE'))==='true';
this.jobtag_bool[0] = (localStorage.getItem('JTAG_1'))==='true';
this.jobtag_bool[1] = (localStorage.getItem('JTAG_2'))==='true';
this.jobtag_bool[2] = (localStorage.getItem('JTAG_4'))==='true';
this.jobtag_bool[3] = (localStorage.getItem('JTAG_8'))==='true';
this.jobtag_bool[4] = (localStorage.getItem('JTAG_16'))==='true';
this.selected_jobtags = localStorage.getItem('SELECTED_JTG');
}
......@@ -603,11 +603,11 @@ export class SearchComponent implements OnInit {
}
}
localStorage.setItem('JTAGA', this.jobtag_bool[0].toString());
localStorage.setItem('JTAGB', this.jobtag_bool[1].toString());
localStorage.setItem('JTAGC', this.jobtag_bool[2].toString());
localStorage.setItem('JTAGD', this.jobtag_bool[3].toString());
localStorage.setItem('JTAGE', this.jobtag_bool[4].toString());
localStorage.setItem('JTAG_1', this.jobtag_bool[0].toString());
localStorage.setItem('JTAG_2', this.jobtag_bool[1].toString());
localStorage.setItem('JTAG_4', this.jobtag_bool[2].toString());
localStorage.setItem('JTAG_8', this.jobtag_bool[3].toString());
localStorage.setItem('JTAG_16', this.jobtag_bool[4].toString());
if ( this.jobtag_sum && this.jobtag_sum != 0 ){
this.monitoringservice.addFilterItem('TAGS', this.jobtag_sum.toString());
}
......
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