details:   https://code.openbravo.com/erp/devel/pi/rev/a0b036f79c11
changeset: 28548:a0b036f79c11
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Thu Jan 28 18:48:27 2016 +0100
summary:   fixes issue 31180: openDirectTab action now works if the tab is 
already opened

Now the 'openDirectTab' response action takes into account if the 'Allow 
Multiple Tabs of a Window' preference is enabled. In that case when this action 
tries to open a tab which is already opened it opens a new tab in the last 
position instead of refreshing the old one.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
 |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r baf72de5b678 -r a0b036f79c11 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
     Thu Jan 28 17:22:21 2016 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js
     Thu Jan 28 18:48:27 2016 +0100
@@ -95,7 +95,11 @@
 OB.Utilities.Action.set('openDirectTab', function (paramObj) {
   var processIndex, tabPosition;
   if (!paramObj.newTabPosition) {
-    tabPosition = OB.Utilities.getTabNumberById(paramObj.tabId); // Search if 
the tab has been opened before
+    if (paramObj._processView && OB.PropertyStore.get('AllowMultiTab', 
paramObj._processView.windowId) === 'Y') {
+      tabPosition = OB.MainView.TabSet.paneContainer.members.length;
+    } else {
+      tabPosition = OB.Utilities.getTabNumberById(paramObj.tabId); // Search 
if the tab has been opened before
+    }
     if (tabPosition !== -1) {
       paramObj.newTabPosition = tabPosition;
     } else {

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to