mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
disabling all actions but add on sum rows
This commit is contained in:
parent
59f264ada4
commit
118d9e025d
@ -723,7 +723,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
}
|
}
|
||||||
$row['ts_start'] = $row['ts_unitprice'] = '';
|
$row['ts_start'] = $row['ts_unitprice'] = '';
|
||||||
if (!$this->quantity_sum) $row['ts_quantity'] = '';
|
if (!$this->quantity_sum) $row['ts_quantity'] = '';
|
||||||
$row['class'] = 'th';
|
$row['class'] = 'th rowNoEdit rowNoDelete rowNoUndelete';
|
||||||
$row['titleClass'] = 'timesheet_titleSum';
|
$row['titleClass'] = 'timesheet_titleSum';
|
||||||
unset($row['ts_id']); // otherwise row would be selectable action-wise
|
unset($row['ts_id']); // otherwise row would be selectable action-wise
|
||||||
continue;
|
continue;
|
||||||
@ -925,6 +925,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
'url' => 'menuaction=timesheet.timesheet_ui.edit&ts_id=$id',
|
'url' => 'menuaction=timesheet.timesheet_ui.edit&ts_id=$id',
|
||||||
'popup' => egw_link::get_registry('timesheet', 'add_popup'),
|
'popup' => egw_link::get_registry('timesheet', 'add_popup'),
|
||||||
'group' => $group=1,
|
'group' => $group=1,
|
||||||
|
'disableClass' => 'th',
|
||||||
),
|
),
|
||||||
/*
|
/*
|
||||||
'view' => array(
|
'view' => array(
|
||||||
@ -973,6 +974,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
'url' => 'menuaction=filemanager.filemanager_ui.index&path=/apps/timesheet/$id',
|
'url' => 'menuaction=filemanager.filemanager_ui.index&path=/apps/timesheet/$id',
|
||||||
'allowOnMultiple' => false,
|
'allowOnMultiple' => false,
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
|
'disableClass' => 'th',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$group++;
|
$group++;
|
||||||
@ -1009,6 +1011,9 @@ class timesheet_ui extends timesheet_bo
|
|||||||
$actions[$action]['disableClass'] = 'rowNoEdit';
|
$actions[$action]['disableClass'] = 'rowNoEdit';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$actions['documents'] += array(
|
||||||
|
'disableClass' => 'th',
|
||||||
|
);
|
||||||
//_debug_array($actions);
|
//_debug_array($actions);
|
||||||
return $actions;
|
return $actions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user