[IMP]Destroy tooltip.

bzr revid: bth@tinyerp.com-20131206062152-15fi8v8xokyux40m
This commit is contained in:
bth-openerp 2013-12-06 11:51:52 +05:30
parent 188d426500
commit 6ccb6423ea
2 changed files with 2 additions and 1 deletions

View File

@ -586,6 +586,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
this.$el.find('.oe_view_manager_switch a').attr('data-toggle', 'tooltip');
this.$el.find('.oe_view_manager_switch a').click(function() {
self.switch_mode($(this).data('view-type'));
$(this).tooltip('destroy');
}).tooltip({
container: 'body',
html: true,

View File

@ -423,7 +423,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
},
on_record_moved : function(record, old_group, old_index, new_group, new_index) {
var self = this;
$.fn.tooltip('destroy');
record.$el.children().find('[title]').tooltip('destroy');
$(old_group.$el).add(new_group.$el).find('.oe_kanban_aggregates, .oe_kanban_group_length').hide();
if (old_group === new_group) {
new_group.records.splice(old_index, 1);