summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--panes/tabVMSnapshots.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/panes/tabVMSnapshots.html b/panes/tabVMSnapshots.html
index be3fba7..c91a14b 100644
--- a/panes/tabVMSnapshots.html
+++ b/panes/tabVMSnapshots.html
@@ -734,10 +734,12 @@ function __vboxTabSnapshotsFill(response) {
$('#vboxSnapshotList').vbtree();
vboxSnapshotToolbar.enable();
-
- $('#vboxSnapshotList').trigger('select');
-
- __vboxTabSnapshotTimestamps();
+
+ var lastListItem = $(list).find('li.vboxSnapshotCurrentState').last();
+ lastListItem.children().addClass('vboxListItemSelected');
+ $('#vboxSnapshotList').trigger('select',lastListItem);
+
+ __vboxTabSnapshotTimestamps();
});