Truncate datatable tooltips

This commit is contained in:
Hillel Coren 2018-03-06 20:04:49 +02:00
parent 6a0ebbb4d5
commit 4a98985f14

View File

@ -103,7 +103,7 @@ class EntityDatatable
$str = e($str); $str = e($str);
if (strlen($str) > $max) { if (strlen($str) > $max) {
return '<span data-toggle="tooltip" data-placement="bottom" title="' . $str . '">' . trim(substr($str, 0, $max)) . '...' . '</span>'; return '<span data-toggle="tooltip" data-placement="bottom" title="' . substr($str, 0, 500) . '">' . trim(substr($str, 0, $max)) . '...' . '</span>';
} else { } else {
return $str; return $str;
} }