Merge lp:~openerp-dev/openerp-web/7.0-opw-577662-port-bth into lp:openerp-web/7.0

Proposed by Bhumi Thakkar (Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/7.0-opw-577662-port-bth
Merge into: lp:openerp-web/7.0
Diff against target: 14 lines (+0/-4)
1 file modified
addons/web/static/src/js/view_form.js (+0/-4)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/7.0-opw-577662-port-bth
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+144296@code.launchpad.net

Description of the change

Hello,

   Selected tab in previous record, should select in current record if it is exist.
i.e: one record has opened/selected 2nd tab(Account) then in next record if 2nd tab(Account) is there then should selected 2nd one. Else if it not there then should select first one tab.

Thanks.

To post a comment you must log in.

Unmerged revisions

3709. By Bhumi Thakkar (Open ERP)

[FIX] Select previously selected tab in current record.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2013-01-07 16:18:07 +0000
+++ addons/web/static/src/js/view_form.js 2013-01-22 12:18:22 +0000
@@ -1514,10 +1514,6 @@
1514 if (! page.__ic)1514 if (! page.__ic)
1515 return;1515 return;
1516 page.__ic.on("change:effective_invisible", null, function() {1516 page.__ic.on("change:effective_invisible", null, function() {
1517 if (!page.__ic.get('effective_invisible')) {
1518 $new_notebook.tabs('select', i);
1519 return;
1520 }
1521 var current = $new_notebook.tabs("option", "selected");1517 var current = $new_notebook.tabs("option", "selected");
1522 if (! pages[current].__ic || ! pages[current].__ic.get("effective_invisible"))1518 if (! pages[current].__ic || ! pages[current].__ic.get("effective_invisible"))
1523 return;1519 return;