mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 02:18:31 +02:00
Don't unregister selected rows from the selection manager, even if they're destroyed.
Fixes selection loses first rows when user scrolls down.
This commit is contained in:
@ -663,8 +663,10 @@ var et2_dataview_controller = Class.extend({
|
|||||||
*/
|
*/
|
||||||
_destroyCallback: function (_row) {
|
_destroyCallback: function (_row) {
|
||||||
|
|
||||||
// Unregister the row from the selection manager
|
// Unregister the row from the selection manager, if not selected
|
||||||
if (this.entry.row)
|
// If it is selected, leave it there - allows selecting rows and scrolling
|
||||||
|
var selection = this.self._selectionMgr._getRegisteredRowsEntry(this.entry.uid);
|
||||||
|
if (this.entry.row && selection && !egwBitIsSet(selection.state, EGW_AO_STATE_SELECTED))
|
||||||
{
|
{
|
||||||
var tr = this.entry.row.getDOMNode();
|
var tr = this.entry.row.getDOMNode();
|
||||||
this.self._selectionMgr._updateState(this.entry.uid, EGW_AO_STATE_NORMAL)
|
this.self._selectionMgr._updateState(this.entry.uid, EGW_AO_STATE_NORMAL)
|
||||||
|
Reference in New Issue
Block a user