Allow possibility to include select all flag in url in addition to selected IDs

This commit is contained in:
Nathan Gray 2014-07-07 16:46:16 +00:00
parent 15ddeb2a24
commit 1273955f9d

View File

@ -68,7 +68,10 @@ function nm_action(_action, _senders, _target, _ids)
var url = '#';
if (typeof _action.data.url != 'undefined')
{
url = _action.data.url.replace(/(\$|%24)id/,encodeURIComponent(ids));
// 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);
}
var target = null;