mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Solve the problem with mail selecting the next mail and marking it as read when you move a mail by turning off the select-next-row thing for mail
This commit is contained in:
parent
d76b214e2c
commit
15b0ecec22
@ -525,7 +525,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
||||
this.controller.deleteRow(uid);
|
||||
}
|
||||
// Select & focus next row
|
||||
if (next && next.id) {
|
||||
if (next && next.id && !this.options.disable_selection_advance) {
|
||||
this.controller._selectionMgr.setSelected(next.id, true);
|
||||
this.controller._selectionMgr.setFocused(next.id, true);
|
||||
}
|
||||
@ -2337,6 +2337,12 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
||||
"description": "Disable the ability to autorefresh the nextmatch on a regular interval. ",
|
||||
"default": false
|
||||
},
|
||||
"disable_selection_advance": {
|
||||
"name": "Disable selection advance",
|
||||
"type": "boolean",
|
||||
"description": "If a refresh deletes the currently selected row, we normally advance the selection to the next row. Set to true to stop this.",
|
||||
"default": false
|
||||
},
|
||||
"view": {
|
||||
"name": "View",
|
||||
"type": "string",
|
||||
|
@ -189,6 +189,12 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
||||
"description": "Disable the ability to autorefresh the nextmatch on a regular interval. ",
|
||||
"default": false
|
||||
},
|
||||
"disable_selection_advance": {
|
||||
"name": "Disable selection advance",
|
||||
"type": "boolean",
|
||||
"description": "If a refresh deletes the currently selected row, we normally advance the selection to the next row. Set to true to stop this.",
|
||||
"default": false
|
||||
},
|
||||
"view": {
|
||||
"name": "View",
|
||||
"type": "string",
|
||||
@ -817,7 +823,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
||||
}
|
||||
|
||||
// Select & focus next row
|
||||
if(next && next.id)
|
||||
if(next && next.id && !this.options.disable_selection_advance)
|
||||
{
|
||||
this.controller._selectionMgr.setSelected(next.id, true);
|
||||
this.controller._selectionMgr.setFocused(next.id, true);
|
||||
|
@ -4,7 +4,7 @@
|
||||
<overlay>
|
||||
<template id="mail.index.splitter" height="100%" template="" lang="" group="0" version="1.9.001">
|
||||
<split dock_side="bottomDock" id="mailSplitter">
|
||||
<nextmatch id="nm" onselect="app.mail.mail_preview" class="" template="mail.index.rows" header_left="mail.index.add" header_right="mail.index.header_right"/>
|
||||
<nextmatch id="nm" onselect="app.mail.mail_preview" class="" template="mail.index.rows" header_left="mail.index.add" header_right="mail.index.header_right" disable_selection_advance="true"/>
|
||||
<vbox id="mailPreview" width="100%">
|
||||
<toolbar id="toolbar"/>
|
||||
<box id="blank" disabled="false">
|
||||
|
Loading…
Reference in New Issue
Block a user