From 9eb8e07d4f2ca56a0664fdf3a2e6ba1da53489bb Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 10 May 2012 11:26:21 +0200 Subject: [FIX] Fix empty list menu tips on editable lists bzr revid: fme@openerp.com-20120510092621-kbjjmo6yct1ndg3c --- addons/web/static/src/js/view_list.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/view_list.js') diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 79e10ea0d7c..5c9f41806c2 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -820,15 +820,18 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi } }, no_result: function () { + this.$element.find('.oe_view_nocontent').remove(); if (this.groups.group_by || !this.options.action || !this.options.action.help) { return; } - this.$element.children('table').replaceWith( + this.$element.find('table:first').hide(); + this.$element.prepend( $('
') .append($('', { src: '/web/static/src/img/view_empty_arrow.png' })) - .append($('
').html(this.options.action.help))); + .append($('
').html(this.options.action.help)) + ); } }); instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.ListView.List# */{ -- cgit v1.2.3