Related to issue 22376: Improved classic tabs opening with IE10
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 28 Aug 2013 03:27:16 +0200
changeset 21042 5d8fcc539dbf
parent 21041 74e284988f42
child 21043 b770ecd93cf5
child 21044 0268756c9c4a
Related to issue 22376: Improved classic tabs opening with IE10
now there should not show empty tabs with any opening sequence
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js	Wed Aug 28 01:17:39 2013 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js	Wed Aug 28 03:27:16 2013 +0200
@@ -63,6 +63,12 @@
   }),
 
   tabSelected: function (tabNum, tabPane, ID, tab) {
+    if (navigator.userAgent.indexOf('Trident/6.0') !== -1) {
+      // To fix a problem with Internet Explorer 10 and classic OB windows: http://forums.smartclient.com/showthread.php?t=27389
+      if (tabPane.viewId === 'OBClassicWindow' || tabPane.viewId === 'ClassicOBHelp') {
+        tabPane.bringToFront();
+      }
+    }
     if (!tabPane.isLoadingTab) {
       OB.Layout.HistoryManager.updateHistory();
     }