Revision 2506f741 ui/static/snf/js/ui/web/ui_list_view.js

b/ui/static/snf/js/ui/web/ui_list_view.js
31 31
            this.available_actions = [];
32 32
            this.multi_view = synnefo.ui.main.multiple_actions_view;
33 33
            this.hovered = false;
34

  
35
            this.update_actions = _.throttle(this.update_actions, 100);
34 36
        },
35 37

  
36 38
        set_handlers: function() {
......
148 150

  
149 151
            this.table_data = {};
150 152
            views.ListView.__super__.initialize.apply(this, arguments);
153

  
154
            this.update_layout = _.throttle(this.update_layout, 100);
151 155
        },
152 156
        
153 157
        reset: function() {
......
249 253
        // remove vm
250 254
        remove_vm: function(vm) {
251 255
            this.vm(vm).find("input[type=checkbox]").removeAttr("checked");
252
            var index = this.table_data["vm_" + vm.id].index;
256
            var vm_data = this.table_data["vm_" + vm.id];
257
            if (!vm_data) { return };
258
            var index = vm_data.index;
253 259
            this.table.fnDeleteRow(index);
254 260
            delete this.table_data["vm_" + vm.id];
255 261
            this.update_data();
......
375 381
        },
376 382

  
377 383
        post_update_vm: function(vm) {
384
            if (vm.hasOnlyChange(["pending_action", "stats"])) { return };
378 385
            var index = this.table_data["vm_" + vm.id].index;
379 386
            params = this.get_vm_table_data(vm);
380 387
            this.table_data["vm_" + vm.id].params = params;

Also available in: Unified diff