Switch to externalLinkFormatter

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-26 18:42:34 -07:00
parent dcb7eadfc7
commit e25dc42121
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ class ManufacturerPresenter extends Presenter
'switchable' => true,
'title' => trans('admin/manufacturers/table.url'),
'visible' => true,
'formatter' => 'linkFormatter',
'formatter' => 'externalLinkFormatter',
],
[
'field' => 'support_url',

View file

@ -514,7 +514,7 @@
if (value) {
if ((value.indexOf("{") === -1) || (value.indexOf("}") ===-1)) {
return '<a href="' + value + '" target="_blank">' + value + ' <i class="fa fa-external-link"></i></a>';
return '<i class="fa fa-external-link"></i> <a href="' + value + '" target="_blank">' + value + '</a>';
}
return value;
}