mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix refresh after delete from edit popup in resources
This commit is contained in:
parent
6a920c5e38
commit
2b91721887
@ -34,7 +34,6 @@ class resources_ui
|
||||
$this->tmpl = new etemplate_new('resources.show');
|
||||
$this->bo = new resources_bo();
|
||||
// $this->calui = CreateObject('resources.ui_calviews');
|
||||
//egw_framework::csp_script_src_attrs(array('unsafe-eval', 'unsafe-inline'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -450,16 +449,21 @@ class resources_ui
|
||||
break;
|
||||
case 'delete':
|
||||
unset($content['delete']);
|
||||
$msg = $this->bo->delete($content['res_id']);
|
||||
break;
|
||||
if(!$this->bo->delete($content['res_id']))
|
||||
{
|
||||
$msg = lang('Resource %1 deleted!',$content['res_id']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$msg = lang('Resource %1 faild to be deleted!', $content['res_id']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
egw_framework::refresh_opener($msg, 'resources',$content['res_id'],(button == 'delete' ? 'delete' : 'edit'));
|
||||
egw_framework::refresh_opener($msg, 'resources',$content['res_id'],($button == 'delete'?'delete':'edit'));
|
||||
|
||||
if($button != 'apply')
|
||||
{
|
||||
egw_framework::window_close();
|
||||
$GLOBALS['egw']->common->egw_exit();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user