Statistics
| Branch: | Tag: | Revision:

root / ui / static / snf / js / ui / web / ui_connect_view.js @ 550d9733

History | View | Annotate | Download (1.1 kB)

1
;(function(root){
2

    
3
    // root
4
    var root = root;
5
    
6
    // setup namepsaces
7
    var snf = root.synnefo = root.synnefo || {};
8
    var models = snf.models = snf.models || {}
9
    var storage = snf.storage = snf.storage || {};
10
    var ui = snf.ui = snf.ui || {};
11
    var util = snf.util = snf.util || {};
12

    
13
    var views = snf.views = snf.views || {}
14

    
15
    // shortcuts
16
    var bb = root.Backbone;
17

    
18

    
19
    views.VMConnectView = views.VMOverlay.extend({
20
        
21
        view_id: "connect_view",
22
        content_selector: "#vm-connect-overlay-content",
23
        css_class: 'overlay-vmconnect overlay-info',
24
        overlay_id: "vmconnect-overlay",
25

    
26
        subtitle: "",
27
        title: "Connect to machine",
28

    
29
        initialize: function(options) {
30
            views.VMConnectView.__super__.initialize.apply(this);
31
        },
32

    
33
        handle_vm_change: function(vm) {
34
            if (this.vm.state() == "DESTROY") {
35
                this.hide();
36
            }
37
            this._update_vm_details();
38
        },
39
        
40
        update_vm_details: function() {
41
        }
42

    
43
    });
44
    
45
})(this);