Hide empty image displayed as broken image

issue7319
review47281002
This commit is contained in:
Cédric Krier committed 2018-04-13 18:52:51 +02:00
1 parent 5302206ce4
commit d2ccdfeb99
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -2525,7 +2525,7 @@
},
register_icon: function(icon_name) {
if (!icon_name) {
return jQuery.Deferred().reject();
return jQuery.when();
} else if ((icon_name in this.loaded_icons) ||
~Sao.common.LOCAL_ICONS.indexOf(icon_name)) {
return jQuery.when(this.get_icon_url(icon_name));
+5
View File
@@ -94,6 +94,11 @@ input[type='color'] {
}
}
/* Hide empty image displayed as broken image */
[src=''] {
visibility: hidden;
}
img.icon {
height: unit(@line-height-base, em);
}
+1 -1
View File
@@ -1540,7 +1540,7 @@
} else {
img_tag = cell;
}
img_tag.attr('src', url);
img_tag.attr('src', url || '');
}.bind(this));
} else {
value = this.attributes.string || '';