mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Et2LinkList: Don't show context menu or delete for readonly lists
This commit is contained in:
parent
6238302901
commit
a79538ffbc
@ -191,6 +191,10 @@ export class Et2LinkList extends Et2LinkString
|
||||
*/
|
||||
protected _handleRowHover(_ev)
|
||||
{
|
||||
if(this.readonly)
|
||||
{
|
||||
return;
|
||||
}
|
||||
let slot_name = "";
|
||||
let target = _ev.target;
|
||||
|
||||
@ -508,7 +512,7 @@ export class Et2LinkList extends Et2LinkString
|
||||
protected _handleRowContext(_ev)
|
||||
{
|
||||
// Do not trigger expose view if one of the operator keys are held
|
||||
if(_ev.altKey || _ev.ctrlKey || _ev.shiftKey || _ev.metaKey)
|
||||
if(this.readonly || _ev.altKey || _ev.ctrlKey || _ev.shiftKey || _ev.metaKey)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user