[FIX] Minor change in issue of open sidebar on checked list record.

lp bug: https://launchpad.net/bugs/856376 fixed

bzr revid: kbh@bde-desktop-20111003071807-33zlrcc0vopiahoz
This commit is contained in:
kbh 2011-10-03 12:48:07 +05:30
parent fdfe102cc4
commit 335c99fda4
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
do_select: function (ids, records) {
this.$element.find('.oe-list-delete')
.attr('disabled', !ids.length);
if(ids.length > 0) {
if(ids.length) {
this.sidebar.do_unfold();
} else {
this.sidebar.do_fold();