* fix dashboard widget usage.

This commit is contained in:
sunhao
2023-05-23 10:04:24 +08:00
parent 4d11f3f312
commit 376b8ef890
+1 -1
View File
@@ -41,7 +41,7 @@ foreach($shortBlocks as $index => $block)
}
$blockMenuItems = array();
$blockMenuItems[] = array('text' => $lang->block->refresh, 'data-type' => 'refresh');
$blockMenuItems[] = array('text' => $lang->block->refresh, 'attrs' => array('data-type' => 'refresh'));
$blockMenuItems[] = array('text' => $lang->edit, 'data-url' => createLink('block', 'edit', "blockID={id}"));
$blockMenuItems[] = array('text' => $lang->block->hidden, 'data-url' => createLink('block', 'delete', "blockID={id}&type=hidden"));
$blockMenuItems[] = array('text' => $lang->block->createBlock, 'data-url' => createLink('block', 'create', "dashboard=$dashboard"));