Revert attempt to attach ao because it breaks select all actions by keeping previous executed registeredRows and accumulate them for further actions

This commit is contained in:
Hadi Nategh 2018-07-06 12:20:16 +02:00
parent 68e4030fe5
commit 7ab13f20d8

View File

@ -425,7 +425,7 @@ var et2_dataview_selectionManager = (function(){ "use strict"; return Class.exte
// Attach ao if not there, happens for rows loaded for selection, but // Attach ao if not there, happens for rows loaded for selection, but
// not displayed yet // not displayed yet
if(!_entry.ao && _entry.uid && this._actionObjectManager) /* if(!_entry.ao && _entry.uid && this._actionObjectManager)
{ {
var _links = []; var _links = [];
for (var key in this._registeredRows) for (var key in this._registeredRows)
@ -442,7 +442,7 @@ var et2_dataview_selectionManager = (function(){ "use strict"; return Class.exte
this._attachActionObject(_entry, null, _entry.uid, _links, _entry.idx); this._attachActionObject(_entry, null, _entry.uid, _links, _entry.idx);
} }
} }
*/
// Update the state if it has changed // Update the state if it has changed
if ((_entry.aoi && _entry.aoi.getState() !== _state) || _entry.state != _state) if ((_entry.aoi && _entry.aoi.getState() !== _state) || _entry.state != _state)
{ {