diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-10-27 14:50:38 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-10-29 08:38:19 +0100 |
| commit | 488bb6e803faf7a27b9eb82f3efd5dc8458b472d (patch) | |
| tree | 2dd240a3e30ee5699fae8f12c7bd38ad4c22d95b /addons/web/static/src | |
| parent | 3b537ec121b2c05a147a0a66b022c913118a9314 (diff) | |
[FIX] fix bouncing problem on create/import buttons
the bouncing is supposed to occur when clicking on the area in view list
with no content. Problem was that the Create button was separated from
the import button while bouncing. This commit fixes the issue in a not
really subtle way: it instead bounces the whole row. I tried to find a
better fix, but I don't like jqueryui and i don't want to spend too much
time on this.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 4 |
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 3a3e1fe52f6..dd212d79f3c 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; + var create_nocontent = this.$buttons.closest('.col-md-6'); this.$el.find('.oe_view_nocontent').click(function() { - create_nocontent.openerpBounce(); + create_nocontent.effect('bounce', {distance: 18, times: 5}, 250); }); } }); |
