Revision c343513e ui/static/snf/js/ui/web/ui_single_view.js
b/ui/static/snf/js/ui/web/ui_single_view.js | ||
---|---|---|
57 | 57 |
|
58 | 58 |
initialize: function() { |
59 | 59 |
this.current_vm = 0; |
60 |
this.update_current_vm(); |
|
61 | 60 |
|
62 | 61 |
// button selectors |
63 | 62 |
this.prev_button = this.$(".controls .previous"); |
... | ... | |
65 | 64 |
this.menu = $("#single-servers-list"); |
66 | 65 |
|
67 | 66 |
views.SingleView.__super__.initialize.apply(this, arguments); |
67 |
this.update_current_vm(); |
|
68 | 68 |
}, |
69 | 69 |
|
70 | 70 |
// overload show function |
... | ... | |
110 | 110 |
this.current_vm_instance = storage.vms.at(this.current_vm); |
111 | 111 |
this.current_vm_instance.do_update_stats = true; |
112 | 112 |
} catch (err) { |
113 |
console.trace(); |
|
113 | 114 |
this.log.debug("Cannot select current vm instance for: {0}".format(this.current_vm)); |
114 | 115 |
} |
115 | 116 |
}, |
... | ... | |
165 | 166 |
this.tags_views[vm.id] = new views.VMTagsView(vm, this, true, 20, 10, 35); |
166 | 167 |
this.details_views[vm.id] = new views.SingleDetailsView(vm, this); |
167 | 168 |
this.action_error_views[vm.id] = new views.VMActionErrorView(vm, this); |
169 |
|
|
170 |
this.vm(vm).hide(); |
|
168 | 171 |
}, |
169 | 172 |
|
170 | 173 |
post_update_vm: function(vm) { |
Also available in: Unified diff