convert global id prefixed with app:: to just id

This commit is contained in:
Ralf Becker 2012-03-27 13:12:51 +00:00
parent 508c3c5517
commit 5f4341225a

View File

@ -28,7 +28,9 @@ function nm_action(_action, _senders)
var ids = "";
for (var i = 0; i < _senders.length; i++)
{
ids += (_senders[i].id.indexOf(',') >= 0 ? '"'+_senders[i].id.replace(/"/g,'""')+'"' : _senders[i].id) +
var app_id = _senders[i].id.split('::', 2);
var id = app_id[1];
ids += (id.indexOf(',') >= 0 ? '"'+id.replace(/"/g,'""')+'"' : id) +
((i < _senders.length - 1) ? "," : "");
}
//console.log(_action); console.log(_senders);