Revision b042eb04

b/ui/static/snf/js/ui/web/ui_vms_base_view.js
88 88
            // create dom element
89 89
            var vm_view = this.create_vm_element(vm);
90 90
            vm_view.find(".vm-actions").attr("id", this.view_id+"-actions-" + vm.id);
91
            var container = this.get_vm_container(vm)
91
            var container = this.get_vm_container(vm);
92 92
            container.append(vm_view);
93 93
            vm_view.find(".action-indicator").text("");
94 94
            if (this.visible()) {
......
207 207
                var cont = this.sel(selector);
208 208
                var self = this;
209 209

  
210
                el.hide().appendTo(cont).show();
210
                el.hide().appendTo(cont).fadeIn(300);
211 211
                $(window).trigger('resize');
212 212

  
213 213
                //el.fadeOut(200, function() {
......
460 460
                // cancels
461 461
                $(this.el).find(".action-container."+action+" button.yes").click(function(ev) {
462 462
                    ev.preventDefault();
463
                    self.vm.call(action);
463
                    // override console
464
                    // ui needs to act (open the console window)
465
                    if (action == "console") {
466
                        self.view.connect_to_console(self.vm);
467
                    } else {
468
                        self.vm.call(action);
469
                    }
464 470
                    self.reset();
465 471
                });
466 472
            }, this);

Also available in: Unified diff