mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
fixed can not access property uid of undefined, but there seems to be more problems with new persistent selection between "refreshs"
This commit is contained in:
parent
095cb846f6
commit
c4385f79ec
@ -120,9 +120,10 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
|
|||||||
*/
|
*/
|
||||||
keepSelection: function() {
|
keepSelection: function() {
|
||||||
this.kept_selection = this._selectionMgr ? this._selectionMgr.getSelected() : null;
|
this.kept_selection = this._selectionMgr ? this._selectionMgr.getSelected() : null;
|
||||||
this.kept_focus = this._selectionMgr ? this._selectionMgr._focusedEntry.uid || null : null;
|
this.kept_focus = this._selectionMgr && this._selectionMgr._focusedEntry ?
|
||||||
|
this._selectionMgr._focusedEntry.uid || null : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
getObjectManager: function () {
|
getObjectManager: function () {
|
||||||
return this._objectManager;
|
return this._objectManager;
|
||||||
},
|
},
|
||||||
@ -149,7 +150,7 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
|
|||||||
var entry = this._indexMap[mapIndex];
|
var entry = this._indexMap[mapIndex];
|
||||||
entry.idx = mapIndex-1;
|
entry.idx = mapIndex-1;
|
||||||
this._indexMap[mapIndex-1] = entry;
|
this._indexMap[mapIndex-1] = entry;
|
||||||
|
|
||||||
// Update selection mgr too
|
// Update selection mgr too
|
||||||
if(entry.uid && typeof this._selectionMgr._registeredRows[entry.uid] !== 'undefined')
|
if(entry.uid && typeof this._selectionMgr._registeredRows[entry.uid] !== 'undefined')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user