@@ -16,11 +16,11 @@ |
||
16 | 16 | public static $cols = [ |
17 | 17 | 'name' => ['type' => 'text'], |
18 | 18 | 'code' => ['type' => 'text'], |
19 | - 'message' => ['type' => 'dataManager','relation'=>'messages'], |
|
19 | + 'message' => ['type' => 'dataManager', 'relation'=>'messages'], |
|
20 | 20 | ]; |
21 | 21 | public static $dataManagers = [ |
22 | 22 | 'manager' => [ |
23 | - 'cols' => ['name', 'code','message'] |
|
23 | + 'cols' => ['name', 'code', 'message'] |
|
24 | 24 | ] |
25 | 25 | ]; |
26 | 26 | public static $forms = [ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | }, |
21 | 21 | 'getValueText' => function ($value, $params) { |
22 | 22 | $value = \Ecommerce\Delivery\Field\Item::get($value); |
23 | - if($value){ |
|
23 | + if ($value) { |
|
24 | 24 | return $value->value; |
25 | 25 | } |
26 | 26 | return ''; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | }, |
21 | 21 | 'getValueText' => function ($value, $params) { |
22 | 22 | $value = \Ecommerce\Delivery\Field\Item::get($value); |
23 | - if($value){ |
|
23 | + if($value) { |
|
24 | 24 | return $value->value; |
25 | 25 | } |
26 | 26 | return ''; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | <div class="form-search-results"></div> |
39 | 39 | <script> |
40 | - window.autocomplete<?=$id;?> = function (element, snippet, snippetParams) { |
|
40 | + window.autocomplete<?=$id; ?> = function (element, snippet, snippetParams) { |
|
41 | 41 | element.element.onkeyup = function () { |
42 | 42 | var inputContainer = element.element.parentNode; |
43 | 43 | var selectedDiv = inputContainer.querySelector('.form-search-cur'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | }; |
91 | 91 | inji.onLoad(function () { |
92 | 92 | setTimeout(function () { |
93 | - new window.autocomplete<?=$id;?>(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>); |
|
93 | + new window.autocomplete<?=$id; ?>(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>); |
|
94 | 94 | },100); |
95 | 95 | }); |
96 | 96 | </script> |