forked from extern/egroupware
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:
parent
b7b6baaed5
commit
cf3f99c260
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user