* Finish task #5124.

This commit is contained in:
chenfeiCF
2018-11-14 15:20:26 +08:00
parent 4a021cb8a5
commit 2771600905
+1
View File
@@ -129,6 +129,7 @@ class datatableModel extends model
$fixed = $col->fixed == 'no' ? 'true': 'false';
$width = is_numeric($col->width) ? "{$col->width}px" : $col->width;
$title = isset($col->title) ? "title='$col->title'" : '';
$title = (isset($col->name) and $col->name) ? "title='$col->name'" : $title;
if($id == 'id' and (int)$width < 90) $width = '90px';
$width = "data-width='$width' style='width:$width'";
$align = $id == 'actions' ? 'text-center' : '';