Revision 4921b056 ui/static/snf/js/ui/web/ui_metadata_view.js

b/ui/static/snf/js/ui/web/ui_metadata_view.js
218 218
        },
219 219

  
220 220
        unbind_vm_handlers: function() {
221
            if (!this.current_vm) { return }
221 222
            this.current_vm.unbind("change", this.handle_vm_change);
222 223
        },
223 224

  
224 225
        handle_vm_change: function(vm) {
225
            console.log("meta vm change");
226
            // if overlay has been closed and for
227
            // some reason change event still triggers
228
            // force event unbind
229
            if (!this.current_vm) {
230
                vm.unbind("change", this.handle_vm_change);
231
                return;
232
            } 
233

  
226 234
            this.update_vm_details();
227 235
            this.update_layout();
228 236
        },

Also available in: Unified diff