Fix pulsante disabilita widget

This commit is contained in:
MatteoPistorello 2021-11-08 17:09:07 +01:00
parent 1594dcf7b9
commit aa8cbb698f
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class WidgetManager implements ManagerInterface
protected function render($widget, $title, $number = null)
{
$result = '
<button type="button" class="close" onclick="if(confirm(\'Disabilitare questo widget?\')) { $.post( \''.base_path().'/actions.php?id_module='.self::getModule()->id.'\', { op: \'disable_widget\', id: \''.$widget['id'].'\' }, function(response){ location.reload(); }); };" >
<button type="button" class="close" onclick="if(confirm(\'Disabilitare questo widget?\')) { $.post( \''.base_path().'/actions.php?id_module='.self::getModule()->id.'\', { op: \'disabilita-widget\', id: \''.$widget['id'].'\' }, function(response){ location.reload(); }); };" >
<span aria-hidden="true">&times;</span><span class="sr-only">'.tr('Chiudi').'</span>
</button>';