forked from extern/egroupware
Fix details / no details toggling of columns
This commit is contained in:
parent
0558781183
commit
51951d55d5
@ -534,11 +534,6 @@ class infolog_ui
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'none' &&
|
||||
!isset($GLOBALS['egw_info']['user']['apps']['admin'])
|
||||
);
|
||||
if($rows['no_info_owner_info_responsible'])
|
||||
{
|
||||
// dont show owner, responsible in the columnselection
|
||||
$query['options-selectcols']['info_owner'] = $query['options-selectcols']['info_responsible'] = false;
|
||||
}
|
||||
|
||||
// if filtered by type, show only the stati of the filtered type
|
||||
$rows['sel_options']['info_status'] = $this->bo->get_status($query['col_filter']['info_type']);
|
||||
|
@ -256,7 +256,7 @@ app.classes.infolog = AppJS.extend(
|
||||
|
||||
// Load new preferences
|
||||
var colData = nm.columns.slice();
|
||||
for(var i = 0; i < nm.columns.length; i++) colData[i].disabled=false;
|
||||
for(var i = 0; i < nm.columns.length; i++) colData[i].visible=false;
|
||||
|
||||
nm.set_columns(egw.preference(nm.options.settings.columnselection_pref,'infolog').split(','));
|
||||
nm._applyUserPreferences(nm.columns, colData);
|
||||
@ -265,7 +265,7 @@ app.classes.infolog = AppJS.extend(
|
||||
for(var i = 0; i < colData.length; i++)
|
||||
{
|
||||
nm.dataview.getColumnMgr().columns[i].set_width(colData[i].width);
|
||||
nm.dataview.getColumnMgr().columns[i].set_visibility(!colData[i].disabled);
|
||||
nm.dataview.getColumnMgr().columns[i].set_visibility(colData[i].visible);
|
||||
}
|
||||
nm.dataview.getColumnMgr().updated = true;
|
||||
// Update page
|
||||
|
Loading…
Reference in New Issue
Block a user