- action = 'mkws.limitQuery(\'' + teamName + '\', \'' + pzIndex + '\', this.firstChild.nodeValue)';
- } else {
- // Special case: target selection
- if (!that.team.targetFiltered(data[i].id)) {
- action = 'mkws.limitTarget(\'' + teamName + '\', \'' + data[i].id + '\', this.firstChild.nodeValue)';
- }
+ fn = 'limitQuery'; field = pzIndex;
+ } else if (!that.team.targetFiltered(data[i].id)) {
+ fn = 'limitTarget'; field = data[i].id;