|
@@ -159,9 +159,20 @@
|
|
|
var vo = {:json_encode($vo)};
|
|
|
var salary_end = vo['salary_end'];
|
|
|
var salary_start = vo['salary_start'];
|
|
|
- if(salary_end.charAt(salary_end.length - 1) === 'K'){
|
|
|
- console.log(salary_end.charAt(salary_end.length - 1));
|
|
|
+ console.log()
|
|
|
+ if(typeof(salary_end) !== "number"){
|
|
|
+ if(salary_end.charAt(salary_end.length - 1) === 'K'){
|
|
|
+ console.log((salary_end.slice(0,salary_end.length - 1)) * 1000);
|
|
|
+ $('[name="salary_end"]').attr('value', (salary_end.slice(0,salary_end.length - 1)) * 1000);
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
+ if(typeof(salary_start) !== "number"){
|
|
|
+ if(salary_start.charAt(salary_start.length - 1) === 'K'){
|
|
|
+ console.log((salary_start.slice(0,salary_start.length - 1)) * 1000);
|
|
|
+ $('[name="salary_start"]').attr('value', (salary_start.slice(0,salary_start.length - 1)) * 1000);
|
|
|
};
|
|
|
+ }
|
|
|
|
|
|
</script>
|
|
|
<script>
|