mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Move module description to README [FIX] rst line endings [IMP] Comment on arbitrary media subtype
This commit is contained in:
committed by
Nikul Chaudhary
parent
2fc4e647d1
commit
9830fbec61
@@ -32,6 +32,7 @@ openerp.web_tree_image = function (instance) {
|
||||
var value = row_data[this.id].value, src;
|
||||
if (this.type === 'binary') {
|
||||
if (value && value.substr(0, 10).indexOf(' ') === -1) {
|
||||
// The media subtype (png) seems to be arbitrary
|
||||
src = "data:image/png;base64," + value;
|
||||
} else {
|
||||
src = instance.session.url('/web/binary/image', {model: options.model, field: this.id, id: options.id});
|
||||
|
||||
Reference in New Issue
Block a user