mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°3670 Replace attachment "delete" button with an icon button
This commit is contained in:
@@ -348,12 +348,14 @@ CSS
|
|||||||
|
|
||||||
protected function GetDeleteAttachmentButton($iAttId)
|
protected function GetDeleteAttachmentButton($iAttId)
|
||||||
{
|
{
|
||||||
$oButton = ButtonUIBlockFactory::MakeForAlternativeDestructiveAction(Dict::S('Attachments:DeleteBtn'),
|
$oButton = ButtonUIBlockFactory::MakeDestructiveIconLink('fas fa-trash', Dict::S('Attachments:DeleteBtn'),
|
||||||
|
'',
|
||||||
Dict::S('Attachments:DeleteBtn'),
|
Dict::S('Attachments:DeleteBtn'),
|
||||||
Dict::S('Attachments:DeleteBtn'),
|
null,
|
||||||
false,
|
|
||||||
"btn_remove_".$iAttId);
|
"btn_remove_".$iAttId);
|
||||||
$oButton->AddCSSClass('btn_hidden')->SetOnClickJsCode("RemoveAttachment('.$iAttId.');");
|
$oButton->AddCSSClass('btn_hidden')
|
||||||
|
->SetOnClickJsCode("RemoveAttachment('.$iAttId.');");
|
||||||
|
|
||||||
return BlockRenderer::RenderBlockTemplates($oButton);
|
return BlockRenderer::RenderBlockTemplates($oButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user