Revision 9ce969a7 ui/static/snf/js/views.js

b/ui/static/snf/js/views.js
82 82
            this.defaults = {
83 83
                load: false,
84 84
                closeOnClick: false,
85
                closeOnEsc: false,
85 86
                mask: {
86 87
                    color: "#444",
87 88
                    loadSpeed: snf.config.overlay_speed || 0,
......
180 181
        },
181 182

  
182 183
        _onOpen: function() {
184
            // clear previously bound click events
185
            $(this.el).find(".closeme").unbind("click");
186

  
183 187
            if ($(this.el).find(".closeme").length) {
184 188
                $(this.el).find(".closeme").click(_.bind(function(){
185 189
                    this.hide();
......
270 274
        _update_vm_details: function() { 
271 275
            if (!this.vm) { console.error("invalid view state"); return }
272 276
            this.set_subtitle(this.vm.get("name") + snf.ui.helpers.vm_icon_tag(this.vm, "small"));
273

  
274
            var ico_path = snf.ui.helpers.os_icon_path(this.vm.get("OS"), "oslarge");
275
            this.$(".content").css({"background-image":"url(" + ico_path +")"})
276 277
            this.update_vm_details() 
277 278
        },
278 279

  

Also available in: Unified diff