mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -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,
|
'switchable' => true,
|
||||||
'title' => trans('admin/manufacturers/table.url'),
|
'title' => trans('admin/manufacturers/table.url'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'linkFormatter',
|
'formatter' => 'externalLinkFormatter',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'field' => 'support_url',
|
'field' => 'support_url',
|
||||||
|
|
|
@ -514,7 +514,7 @@
|
||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
if ((value.indexOf("{") === -1) || (value.indexOf("}") ===-1)) {
|
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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue