Skip to content

Commit 06194ae

Browse files
committed
Auto-select current state in snapshot pane
1 parent aa8e46f commit 06194ae

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

panes/tabVMSnapshots.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,12 @@
734734
$('#vboxSnapshotList').vbtree();
735735

736736
vboxSnapshotToolbar.enable();
737-
738-
$('#vboxSnapshotList').trigger('select');
739-
740-
__vboxTabSnapshotTimestamps();
737+
738+
var lastListItem = $(list).find('li.vboxSnapshotCurrentState').last();
739+
lastListItem.children().addClass('vboxListItemSelected');
740+
$('#vboxSnapshotList').trigger('select',lastListItem);
741+
742+
__vboxTabSnapshotTimestamps();
741743

742744
});
743745

0 commit comments

Comments
 (0)