mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-07 22:10:57 +01:00
temp. fix for _ids containing (wrong) selections from different hierarchy levels, fixes doubleclick on InfoLog with children, selects more then one entry to open, which obviously fails
This commit is contained in:
parent
a65b23a3ee
commit
ee167028e3
@ -45,6 +45,12 @@ function nm_action(_action, _senders, _target, _ids)
|
|||||||
_action.data.nextmatch = nm;
|
_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++)
|
||||||
|
{
|
||||||
|
if (_senders[i].id) _ids.ids.push(_senders[i].id);
|
||||||
|
}
|
||||||
|
|
||||||
// Translate the internal uids back to server uids
|
// Translate the internal uids back to server uids
|
||||||
var idsArr = _ids.ids;
|
var idsArr = _ids.ids;
|
||||||
@ -110,7 +116,7 @@ function nm_action(_action, _senders, _target, _ids)
|
|||||||
// freezing for a while. If egw_open is set, and only 1 row selected,
|
// freezing for a while. If egw_open is set, and only 1 row selected,
|
||||||
// egw_open will be used instead.
|
// egw_open will be used instead.
|
||||||
if(doLongTask(idsArr, _action, mgr)) break;
|
if(doLongTask(idsArr, _action, mgr)) break;
|
||||||
|
|
||||||
// Fall through
|
// Fall through
|
||||||
case 'egw_open':
|
case 'egw_open':
|
||||||
var params = _action.data.egw_open.split('-'); // type-appname-idNum (idNum is part of id split by :), eg. "edit-infolog"
|
var params = _action.data.egw_open.split('-'); // type-appname-idNum (idNum is part of id split by :), eg. "edit-infolog"
|
||||||
@ -202,7 +208,7 @@ function nm_action(_action, _senders, _target, _ids)
|
|||||||
// Otherwise, old info will be sent and could overwrite the new,
|
// Otherwise, old info will be sent and could overwrite the new,
|
||||||
// depending on timing.
|
// depending on timing.
|
||||||
nextmatch.refresh(idsArr);
|
nextmatch.refresh(idsArr);
|
||||||
|
|
||||||
// Reset action in case there's another one
|
// Reset action in case there's another one
|
||||||
nextmatch.getValue = old_value;
|
nextmatch.getValue = old_value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user