Revision 75331d54 ui/static/snf/js/ui/web/ui_main_view.js

b/ui/static/snf/js/ui/web/ui_main_view.js
425 425
            if (this.completed_items == 2) {
426 426
                this.load_nets_and_vms();
427 427
            }
428

  
428 429
            if (this.completed_items == this.items_to_load) {
429
                this.after_load();
430
                this.update_status("Rendering layout");
431
                var self = this;
432
                window.setTimeout(function(){
433
                    self.after_load();
434
                }, 100)
430 435
            }
431 436
        },
432 437

  
......
485 490
            this.update_status("Loaded");
486 491
            // FIXME: refactor needed
487 492
            // initialize views
493
            
494
            // bypass update_hidden_views in initial view
495
            // rendering to force all views to get render
496
            // on their creation
497
            var uhv = snf.config.update_hidden_views;
498
            snf.config.update_hidden_views = true;
488 499
            this.initialize_views()
500

  
489 501
            this.update_status("Initializing overlays...");
490 502
            this.init_overlays();
491 503
            // display initial view
492 504
            this.loaded = true;
493 505
            this.show_initial_view();
494 506
            this.check_empty();
507
            snf.config.update_hidden_views = uhv;
495 508
        },
496 509

  
497 510
        load: function() {
......
691 704
                this.current_pane = this.current_view.pane;
692 705
            }
693 706
        },
694

  
707
        
695 708
        show_view: function(view_id) {
709
            //var d = new Date;
710
            var ret = this._show_view(view_id);
711
            //console.log((new Date)-d)
712
            return ret;
713
        },
714

  
715
        _show_view: function(view_id) {
696 716
            try {
697 717
                // same view, visible
698 718
                // get out of here asap

Also available in: Unified diff