Skip to content

Commit e2449b3

Browse files
author
hikki
committed
v3
1 parent ae663c4 commit e2449b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Widget/Dot.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function render()
2929

3030
public static function panel(array $selected,array $select,int $limit=1,array $style=[])
3131
{
32+
$selected = json_encode($selected, JSON_UNESCAPED_UNICODE | JSON_HEX_QUOT | JSON_HEX_APOS);
3233
$select = json_encode($select, JSON_UNESCAPED_UNICODE | JSON_HEX_QUOT | JSON_HEX_APOS);
3334
$style = array_merge(['height'=>'200px'],$style);
3435
$style_string = '';

src/Widget/Linear.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function render()
4141

4242
public static function panel(array $columns,array $data,array $options=['sortable' => true, 'delete' => true])
4343
{
44-
$columns = json_encode($columns);
44+
$columns = json_encode($columns, JSON_UNESCAPED_UNICODE | JSON_HEX_QUOT | JSON_HEX_APOS);
4545
$data = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_HEX_QUOT | JSON_HEX_APOS);
4646
$options = json_encode(array_merge(['sortable' => true, 'delete' => true],$options));
4747
$id = 'dot_'.mt_rand(0,100);

0 commit comments

Comments
 (0)