summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-10-30 10:36:43 +0100
committerGéry Debongnie <ged@odoo.com>2014-10-31 11:29:07 +0100
commit661d8df757085effa950aa7e8763f83c527b7928 (patch)
tree95f73d9bbbed221d8f7ae039b33db7062934ce95 /addons/web/static/src
parent287f65744b6f0a45c7347fae5cbfc3cb155fd680 (diff)
[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.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_list.js4
1 files 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(
$('<div class="oe_view_nocontent">').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();
});
}
});