mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
fixing temp. fix:
- doubleclick does not deselect selection in other hierarchy level (eg. previous selected sub-entry in infolog) --> use _senders - if there was a confirmation _senders array contains strings with id instead of action-objects - empty placeholder from sub-level is selectable --> ignore its empty id
This commit is contained in:
parent
ff29be3197
commit
8e75eca579
@ -45,11 +45,10 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
_action.data.nextmatch = nm;
|
||||
}
|
||||
}
|
||||
// temp. fix for _ids containing (wrong) selections from different hierarchy levels
|
||||
_ids.ids = [];
|
||||
for(var i = 0; i < _senders.length; i++)
|
||||
// default action when doubleclicked contains (previous selected) ids of other hierarchy levels
|
||||
if (_action.default)
|
||||
{
|
||||
if (_senders[i].id) _ids.ids.push(_senders[i].id);
|
||||
_ids.ids = [_senders[0].id];
|
||||
}
|
||||
|
||||
// Translate the internal uids back to server uids
|
||||
@ -57,6 +56,12 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
for (var i = 0; i < idsArr.length; i++)
|
||||
{
|
||||
idsArr[i] = idsArr[i].split("::").pop();
|
||||
// empty placeholder gets reported --> ignore it
|
||||
if (!idsArr[i])
|
||||
{
|
||||
delete idsArr[i];
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate the ids parameters
|
||||
|
Loading…
Reference in New Issue
Block a user