mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add row_id as an another nm_action url parameter
This commit is contained in:
parent
35f2f3fcf1
commit
7c11d37480
@ -47,7 +47,8 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
_action.data.nextmatch = nm;
|
||||
}
|
||||
}
|
||||
|
||||
// row ids
|
||||
var row_ids = _ids.ids.slice(0);
|
||||
// Translate the internal uids back to server uids
|
||||
var idsArr = _ids.ids;
|
||||
for (var i = 0; i < idsArr.length; i++)
|
||||
@ -76,10 +77,13 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
var url = '#';
|
||||
if (typeof _action.data.url != 'undefined')
|
||||
{
|
||||
if (_senders.length == 1 )
|
||||
// Add selected IDs to url
|
||||
url = _action.data.url.replace(/(\$|%24)id/,encodeURIComponent(ids))
|
||||
// Include select all flag too
|
||||
.replace(/(\$|%24)select_all/,_ids.all);
|
||||
.replace(/(\$|%24)select_all/,_ids.all)
|
||||
// Add row_ids to url
|
||||
.replace(/(\$|%24)row_id/,row_ids);
|
||||
}
|
||||
|
||||
var target = null;
|
||||
|
Loading…
Reference in New Issue
Block a user