Revision c343513e

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) {
b/ui/static/snf/js/ui/web/ui_vms_base_view.js
121 121
            // create if it does not exist
122 122
            if (this.vm(vm).length == 0) {
123 123
                this.create_vm(vm);
124
                this.post_add(vm);
125 124
                this.vm(vm).show();
125
                this.post_add(vm);
126 126
            }
127 127

  
128 128
            return this.vm(vm);
......
412 412
                this.update_layout();
413 413

  
414 414
            }, this),  _.bind(function() {
415
                if (self.hide) {
416
                    this.hovered = false;
417
                    this.update_layout();
418
                }
415
                this.hovered = false;
416
                this.update_layout();
419 417
            }, this));
420 418

  
421 419
            

Also available in: Unified diff