Showing
2 changed files
with
6 additions
and
6 deletions
@@ -17,9 +17,9 @@ exports.init=function(){ | @@ -17,9 +17,9 @@ exports.init=function(){ | ||
17 | var g=new grid({ | 17 | var g=new grid({ |
18 | el:'#storeadmin_Tabel', | 18 | el:'#storeadmin_Tabel', |
19 | parms:function(){ | 19 | parms:function(){ |
20 | - var supplierid=$('#supplier-name').val(), | ||
21 | - brandId = $('#brand-name').val(), | ||
22 | - checkStatus = $('#status').val(); | 20 | + var supplierid=!!~$.trim($('#supplier-name').val())?$('#supplier-name').val():"0", |
21 | + brandId = !!~$.trim($('#brand-name').val())?$('#brand-name').val():"0", | ||
22 | + checkStatus = !!~$.trim($('#status').val())?$('#status').val():"0"; | ||
23 | return { | 23 | return { |
24 | "supplierId":supplierid, | 24 | "supplierId":supplierid, |
25 | "brandId":brandId, | 25 | "brandId":brandId, |
@@ -16,9 +16,9 @@ exports.init=function(){ | @@ -16,9 +16,9 @@ exports.init=function(){ | ||
16 | var g=new grid({ | 16 | var g=new grid({ |
17 | el:'#storeadmin_Tabel', | 17 | el:'#storeadmin_Tabel', |
18 | parms:function(){ | 18 | parms:function(){ |
19 | - var supplierid=$('#supplier-name').val(), | ||
20 | - brandId = $('#brand-name').val(), | ||
21 | - checkStatus = $('#status').val(); | 19 | + var supplierid=!!~$.trim($('#supplier-name').val())?$('#supplier-name').val():"0", |
20 | + brandId = !!~$.trim($('#brand-name').val())?$('#brand-name').val():"0", | ||
21 | + checkStatus = !!~$.trim($('#status').val())?$('#status').val():"0"; | ||
22 | return { | 22 | return { |
23 | "supplierId":supplierid, | 23 | "supplierId":supplierid, |
24 | "brandId":brandId, | 24 | "brandId":brandId, |
-
Please register or login to post a comment