diff --git a/src/webui/scripts/mocha-events.js b/src/webui/scripts/mocha-events.js index fe360be02..7b5fd5d94 100644 --- a/src/webui/scripts/mocha-events.js +++ b/src/webui/scripts/mocha-events.js @@ -68,8 +68,8 @@ function attachMochaLinkEvents(){ new Event(e).stop(); var h = myTable.selectedIds(); if(h.length){ - h.each(function(item, index){ - new Request({url: '/command/'+item, method: 'post', data: {hash: item}}).send(); + h.each(function(hash, index){ + new Request({url: '/command/'+item, method: 'post', data: {hash: hash}}).send(); }); } });