Commit 4a4014ed by Kálmán Viktor

dashboard: enable mass vm actions in vm list for 1 selected vm too

parent 9155a413
...@@ -49,7 +49,7 @@ $(function() { ...@@ -49,7 +49,7 @@ $(function() {
// reset btn disables // reset btn disables
$('.vm-list-table tbody tr .btn').attr('disabled', false); $('.vm-list-table tbody tr .btn').attr('disabled', false);
// show/hide group controls // show/hide group controls
if(selected.length > 1) { if(selected.length > 0) {
$('.vm-list-group-control a').attr('disabled', false); $('.vm-list-group-control a').attr('disabled', false);
for(var i = 0; i < selected.length; i++) { for(var i = 0; i < selected.length; i++) {
$('.vm-list-table tbody tr').eq(selected[i]).find('.btn').attr('disabled', true); $('.vm-list-table tbody tr').eq(selected[i]).find('.btn').attr('disabled', true);
......
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