Revision 44660f58 ui/static/snf/js/ui/web/ui_vms_base_view.js

b/ui/static/snf/js/ui/web/ui_vms_base_view.js
32 32

  
33 33
        initialize: function() {
34 34
            views.VMListView.__super__.initialize.call(this);
35

  
36 35
            this.set_storage_handlers();
37 36
            this.set_handlers();
38 37
            this.vms_updated_handler();
39

  
40 38
            this.connect_overlay = new views.VMConnectView();
41
            
39
            this.vm_selector = this.selectors.vm;
42 40
        },
43 41

  
44 42
        // Helpers
......
51 49
        
52 50
        // vm element based on vm model instance provided
53 51
        vm: function(vm) {
54
            return this.sel('vm', vm.id);
52
            return $(this.vm_selector + vm.id);
55 53
        },
56 54
        
57 55
        // get vm model instance from DOM element
......
80 78
                this.remove_vm(model)
81 79
                return;
82 80
            }
83

  
81
            
84 82
            this.update_vms(updated);
85 83
        },
86 84

  
......
160 158

  
161 159
        // do update for provided vms, then update the view layout
162 160
        update_vms: function(vms) {
163

  
164 161
            if (!this.visible() && !snf.config.update_hidden_views) { return };
165 162

  
166 163
            _.each(vms, _.bind(function(vm){

Also available in: Unified diff