Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/6.1-opw-581018-cpa into lp:openerp-web/6.1.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1029286 in OpenERP Web: "[6.1] all notebook page invisible: content 
visible"
  https://bugs.launchpad.net/openerp-web/+bug/1029286

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-581018-cpa/+merge/132850

Hello,

Notebook all page hidden but last page content display.

If we have attrs that set invisible on some condition the pages of notebook and 
all pages are hidden.

When open form view, it will display the content of last hidden page.
All page should be hidden.

Thanks.

-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-581018-cpa/+merge/132850
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-581018-cpa.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-10-23 07:30:10 +0000
+++ addons/web/static/src/js/view_form.js	2012-11-05 09:12:22 +0000
@@ -1233,10 +1233,17 @@
         this._super.apply(this, arguments);
         this.$element_tab = this.notebook.$element.find(
                 '> ul > li:eq(' + this.index + ')');
+        this.$element_page_div = this.notebook.$element.find(
+                '> div:eq(' + this.index + ')');
     },
     update_dom: function() {
         if (this.invisible && this.index === this.notebook.$element.tabs('option', 'selected')) {
             this.notebook.do_select_first_visible_tab();
+            this.$element_page_div.addClass('ui-tabs-hide');
+        } else {
+            if (this.$element_tab.hasClass("ui-state-active")){
+                this.$element_page_div.removeClass('ui-tabs-hide');
+            }
         }
         this.$element_tab.toggle(!this.invisible);
         this.$element.toggle(!this.invisible);

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to