Commit 33051fd6 by Kálmán Viktor

dashboard: fix row selection -> id function in vm list

parent 6c6d57f5
...@@ -188,7 +188,7 @@ $(function() { ...@@ -188,7 +188,7 @@ $(function() {
function collectIds(rows) { function collectIds(rows) {
var ids = []; var ids = [];
for(var i = 0; i < rows.length; i++) { for(var i = 0; i < rows.length; i++) {
var div = $('td:first-child div', $('.vm-list-table tbody tr').eq(i)); var div = $('td:first-child div', $('.vm-list-table tbody tr').eq(rows[i]));
ids.push(div.prop('id').replace('vm-', '')); ids.push(div.prop('id').replace('vm-', ''));
} }
return ids; return ids;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment