From 661d8df757085effa950aa7e8763f83c527b7928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 30 Oct 2014 10:36:43 +0100 Subject: [PATCH] [FIX] fix bouncing buttons (when no content) i am aware that this is an interesting hack, and that i do not resize correctly the $buttons after the bouncing effect, but at least, it solves the problem. --- addons/web/static/src/js/view_list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index dd212d79f3c..1e1c967de22 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -897,9 +897,9 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi this.$el.prepend( $('
').html(this.options.action.help) ); - var create_nocontent = this.$buttons.closest('.col-md-6'); + var $buttons = this.$buttons; this.$el.find('.oe_view_nocontent').click(function() { - create_nocontent.effect('bounce', {distance: 18, times: 5}, 250); + $buttons.width($buttons.width() + 1).openerpBounce(); }); } });