When nm loads data, make sure selection is still shown

This commit is contained in:
Nathan Gray 2013-04-23 15:34:47 +00:00
parent 5c71e6916e
commit 6f124f4b10

View File

@ -360,8 +360,6 @@ var et2_dataview_selectionManager = Class.extend(
_updateEntryState: function (_entry, _state) { _updateEntryState: function (_entry, _state) {
// Update the state of the entry
_entry.state = _state;
if (this._invertSelection) if (this._invertSelection)
{ {
@ -373,12 +371,6 @@ var et2_dataview_selectionManager = Class.extend(
{ {
this._inUpdate = true; // Recursion prevention this._inUpdate = true; // Recursion prevention
// Update the visual state
if (_entry.aoi)
{
_entry.aoi.setState(_state);
}
// Update the state of the action object // Update the state of the action object
if (_entry.ao) if (_entry.ao)
{ {
@ -395,6 +387,15 @@ var et2_dataview_selectionManager = Class.extend(
delete this._registeredRows[_entry.uid]; delete this._registeredRows[_entry.uid];
} }
} }
// Update the visual state
if (_entry.aoi && _entry.aoi.doSetState)
{
_entry.aoi.doSetState(_state);
}
// Update the state of the entry
_entry.state = _state;
}, },
_getRegisteredRowsEntry: function (_uid) { _getRegisteredRowsEntry: function (_uid) {