[FIX] generate absolute urls for images
bzr revid: chs@openerp.com-20111123092055-iqwm3uy1sxw4iq5o
This commit is contained in:
parent
d1792b9704
commit
3225e9d5c4
|
@ -253,7 +253,7 @@ openerp.web.format_cell = function (row_data, column, value_if_empty, process_mo
|
|||
if (column.tag === 'button') {
|
||||
return [
|
||||
'<button type="button" title="', column.string || '', '">',
|
||||
'<img src="/web/static/src/img/icons/', column.icon, '.png"',
|
||||
'<img src=', openerp.connection.server, '"/web/static/src/img/icons/', column.icon, '.png"',
|
||||
' alt="', column.string || '', '"/>',
|
||||
'</button>'
|
||||
].join('')
|
||||
|
|
|
@ -109,7 +109,7 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
|
|||
node.children = [{
|
||||
tag: 'img',
|
||||
attrs: {
|
||||
src: '/web/static/src/img/icons/' + node.attrs['data-icon'] + '.png',
|
||||
src: openerp.connection.server + '/web/static/src/img/icons/' + node.attrs['data-icon'] + '.png',
|
||||
width: '16',
|
||||
height: '16'
|
||||
}
|
||||
|
@ -509,7 +509,7 @@ openerp.web_kanban.KanbanRecord = openerp.web.Widget.extend({
|
|||
},
|
||||
kanban_image: function(model, field, id) {
|
||||
id = id || '';
|
||||
return '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + id;
|
||||
return openerp.connection.server + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + id;
|
||||
},
|
||||
kanban_text_ellipsis: function(s, size) {
|
||||
size = size || 160;
|
||||
|
|
Loading…
Reference in New Issue