Commit 614780a0 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Avoid double escaping of image name

parent 6733ec07
......@@ -1767,6 +1767,7 @@
parse: function (resp, xhr) {
var parsed = _.map(resp.images, _.bind(this.parse_meta, this));
parsed = this.fill_owners(parsed);
parsed = _.map(parsed, function(m) {m.name = 'kpap "image"'; return m});
return parsed;
},
......
......@@ -662,8 +662,12 @@
if (!this.visible() && this.parent.details_hidden) { return };
var image = this.vm.get_image(_.bind(function(image){
this.sel('image_name').text(util.truncate(image.escape('name'), 17)).attr("title", image.escape('name'));
this.sel('image_size').text(image.get_readable_size()).attr('title', image.get_readable_size());
this.sel('image_name').text(
util.truncate(image.get('name'), 17)).attr("title",
image.escape('name'));
this.sel('image_size').text(
image.get_readable_size()).attr('title',
image.get_readable_size());
}, this));
var flavor = this.vm.get_flavor();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment