mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Switch to externalLinkFormatter
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dcb7eadfc7
commit
e25dc42121
|
@ -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',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue