Revision c45bed88 snf-app/synnefo/ui/static/snf/js/ui/web/ui_icon_view.js
b/snf-app/synnefo/ui/static/snf/js/ui/web/ui_icon_view.js | ||
---|---|---|
582 | 582 |
update_layout: function() { |
583 | 583 |
if (!this.visible() && this.parent.details_hidden) { return }; |
584 | 584 |
|
585 |
var image = this.vm.get_image(); |
|
585 |
var image = this.vm.get_image(_.bind(function(image){ |
|
586 |
this.sel('image_name').text(util.truncate(image.get('name'), 13)).attr("title", image.get('name')); |
|
587 |
this.sel('image_size').text(image.get_readable_size()).attr('title', image.get_readable_size()); |
|
588 |
}, this)); |
|
589 |
|
|
586 | 590 |
var flavor = this.vm.get_flavor(); |
587 | 591 |
if (!flavor || !image) { |
588 | 592 |
return; |
589 | 593 |
} |
590 | 594 |
|
591 |
this.sel('image_name').text(util.truncate(image.get('name'), 13)).attr("title", image.get('name')); |
|
592 |
this.sel('image_size').text(image.get_readable_size()).attr('title', image.get_readable_size()); |
|
593 | 595 |
|
594 | 596 |
this.sel('cpu').text(flavor.get('cpu')); |
595 | 597 |
this.sel('ram').text(flavor.get('ram')); |
Also available in: Unified diff