Fixed issue 15598: Now help window doesn't contain JS errors
authorDavid Baz Fayos <david.baz@openbravo.com>
Fri, 04 Mar 2011 00:59:53 +0100
changeset 11011 6ce511c17f48
parent 11010 dec87c13b691
child 11014 525492fb8caf
Fixed issue 15598: Now help window doesn't contain JS errors
src/org/openbravo/erpCommon/ad_help/DisplayHelp.html
--- a/src/org/openbravo/erpCommon/ad_help/DisplayHelp.html	Thu Mar 03 20:19:05 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_help/DisplayHelp.html	Fri Mar 04 00:59:53 2011 +0100
@@ -36,10 +36,16 @@
 </head>
   <script language="JavaScript" type="text/javascript">
     function onLoadDo() {
-      this.windowTables = new Array(
-        new windowTableId('clientIndex'),
-        new windowTableId('client')
-      );
+      if (document.getElementById('clientIndex').getElementsByTagName('a').length === 0) {
+        this.windowTables = new Array(
+          new windowTableId('client')
+        );
+      } else {
+        this.windowTables = new Array(
+          new windowTableId('clientIndex'),
+          new windowTableId('client')
+        );
+      }
       setWindowTableParentElement();
       enableShortcuts('popup');
       setBrowserAutoComplete(false);