[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.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user