mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +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)
|
||||
{
|
||||
$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'),
|
||||
false,
|
||||
null,
|
||||
"btn_remove_".$iAttId);
|
||||
$oButton->AddCSSClass('btn_hidden')->SetOnClickJsCode("RemoveAttachment('.$iAttId.');");
|
||||
$oButton->AddCSSClass('btn_hidden')
|
||||
->SetOnClickJsCode("RemoveAttachment('.$iAttId.');");
|
||||
|
||||
return BlockRenderer::RenderBlockTemplates($oButton);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user