Browse Source

[FIX] Fixed code

pull/1006/head
Nikul Chaudhary 6 years ago
parent
commit
052f739968
  1. 22
      web_tree_image/static/src/js/tooltip.js

22
web_tree_image/static/src/js/tooltip.js

@ -3,15 +3,15 @@ odoo.define('web_tree_image.web_tree_image', function(require) {
var ListRenderer = require('web.ListRenderer'); var ListRenderer = require('web.ListRenderer');
ListRenderer.include({
events: _.extend({}, ListRenderer.prototype.events, {
'mouseover tbody tr td .o_field_image': '_onHoverRecord_img',
}),
_onHoverRecord_img: function (event) {
var img_src = $(event.currentTarget).children('.img-responsive').attr('src')
$(event.currentTarget).tooltip({
title: "<img src="+img_src+" />"
});
}
});
ListRenderer.include({
events: _.extend({}, ListRenderer.prototype.events, {
'mouseover tbody tr td .o_field_image': '_onHoverRecord_img',
}),
_onHoverRecord_img: function (event) {
var img_src = $(event.currentTarget).children('.img-responsive').attr('src')
$(event.currentTarget).tooltip({
title: "<img src="+img_src+" />"
});
}
});
}) })
Loading…
Cancel
Save