Merge pull request #714 from enimiste/patch-1
The switch button "Show to customer" is always On
This commit is contained in:
commit
4632eb0856
@ -153,7 +153,7 @@
|
|||||||
$('input[name="name"]').val(json['data']['name']);
|
$('input[name="name"]').val(json['data']['name']);
|
||||||
$('input[name="code"]').val(json['data']['code']);
|
$('input[name="code"]').val(json['data']['code']);
|
||||||
|
|
||||||
if (json['data']['customer']) {
|
if (json['data']['customer'] == 1) {
|
||||||
$('#customer_1 input').trigger('click');
|
$('#customer_1 input').trigger('click');
|
||||||
} else {
|
} else {
|
||||||
$('#customer_0 input').trigger('click');
|
$('#customer_0 input').trigger('click');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user