mostrarMenu() function translated to menuShowHide() in utils.js
authorDavid Baz Fayos <david.baz@openbravo.com>
Mon, 28 Jan 2008 13:56:07 +0000
changeset 374 cdcc534ff18a
parent 373 bca92ed2f668
child 375 c12314145acb
mostrarMenu() function translated to menuShowHide() in utils.js
src/org/openbravo/base/secureApp/Advise.html
src/org/openbravo/base/secureApp/Error.html
src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html
src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html
src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html
src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html
src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html
src/org/openbravo/erpCommon/ad_process/PrintInvoices.html
src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/utility/KeyMap.java
src/org/openbravo/erpCommon/utility/LeftTabsBar.java
web/js/utils.js
--- a/src/org/openbravo/base/secureApp/Advise.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/base/secureApp/Advise.html	Mon Jan 28 13:56:07 2008 +0000
@@ -38,7 +38,7 @@
                 </tr>
                 <tr>
                   <td>
-                      <A class="Main_LeftTabsBar_ButtonLeft" href="#" onclick="mostrarMenu('buttonMenu');return false;">
+                      <A class="Main_LeftTabsBar_ButtonLeft" href="#" onclick="menuShowHide('buttonMenu');return false;">
                         <IMG class="Main_LeftTabsBar_ButtonLeft_Icon Main_LeftTabsBar_ButtonLeft_Icon_arrow_hide" src="../../../../../web/images/blank.gif" border="0" id="buttonMenu"></IMG>
                       </A>
                   </td>
--- a/src/org/openbravo/base/secureApp/Error.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/base/secureApp/Error.html	Mon Jan 28 13:56:07 2008 +0000
@@ -41,7 +41,7 @@
                 </tr>
                 <tr>
                   <td>
-                      <A class="Main_LeftTabsBar_ButtonLeft" href="#" onclick="mostrarMenu('buttonMenu');return false;">
+                      <A class="Main_LeftTabsBar_ButtonLeft" href="#" onclick="menuShowHide('buttonMenu');return false;">
                         <IMG class="Main_LeftTabsBar_ButtonLeft_Icon Main_LeftTabsBar_ButtonLeft_Icon_arrow_hide" src="../../../../../web/images/blank.gif" border="0" id="buttonMenu"></IMG>
                       </A>
                   </td>
--- a/src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html	Mon Jan 28 13:56:07 2008 +0000
@@ -51,7 +51,7 @@
 </script> 
 <SCRIPT language="JavaScript" type="text/javascript">
 //keyArray = new Array();
-//keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
+//keyArray[2] = new keyArrayItem("M", "menuShowHide();", null, "ctrlKey")
 //enableShortcuts();
 
 function depurar(action) {
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Mon Jan 28 13:56:07 2008 +0000
@@ -56,7 +56,7 @@
 //keyArray = new Array();
 //keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY', 'WindowID', 'GenerateShipmentsmanual');", "inpBpartnerId_DES", "null");
 //keyArray[1] = new keyArrayItem("ENTER", "submitCommandForm('FIND');", null, null),
-//keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
+//keyArray[2] = new keyArrayItem("M", "menuShowHide();", null, "ctrlKey")
 //enableShortcuts();
 
 function depurar(action) {
--- a/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html	Mon Jan 28 13:56:07 2008 +0000
@@ -35,7 +35,7 @@
 <SCRIPT language="javascript" type="text/javascript">
   var keyArray = new Array();
   function enableLocalShortcuts() {
-    keyArray[0] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey");
+    keyArray[0] = new keyArrayItem("M", "menuShowHide();", null, "ctrlKey");
     keyArray[1] = new keyArrayItem("N", "submitCommandForm('NEW', false, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
     keyArray[3] = new keyArrayItem("L", "submitCommandForm('RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
     var clave=document.frmMain.inpCommandType.value;
--- a/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html	Mon Jan 28 13:56:07 2008 +0000
@@ -31,7 +31,7 @@
 <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 keyArray = new Array(
-new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey"),
+new keyArrayItem("M", "menuShowHide();", null, "ctrlKey"),
 new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', 'MatchingPO');", "inpmProductId_DES", "null"),
 new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null")
 );
@@ -54,7 +54,7 @@
 <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();selectCombo(document.frmMain.inpsourcedoc, 'yy');rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);selectCombo(document.frmMain.inpfinaldoc, 'xx');selectCombo(document.frmMain.inpsearchmode, 'zz');setFocusFirstControl();" id="paramBody">
 <TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
 <TR>
-          <TD  width="2%"> <A href="#" onclick="mostrarMenu();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
+          <TD  width="2%"> <A href="#" onclick="menuShowHide();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
             <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
           <TD > <HR></HR>
           </TD>
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html	Mon Jan 28 13:56:07 2008 +0000
@@ -32,7 +32,7 @@
 <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 keyArray = new Array(
-new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
+new keyArrayItem("M", "menuShowHide();", null, "ctrlKey")
 ,
 new keyArrayItem("ENTER", "openSearch(null, null, '../info/Locator_FS.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmLocatorId_DES", "null"), 
 new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmProductId_DES", "null")
--- a/src/org/openbravo/erpCommon/ad_process/PrintInvoices.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/PrintInvoices.html	Mon Jan 28 13:56:07 2008 +0000
@@ -56,7 +56,7 @@
 keyArray = new Array();
 keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
 keyArray[1] = new keyArrayItem("ENTER", "submitCommandForm('FIND', false, null, '../RptC_Invoice.pdf', 'PDF');", null, null);
-keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey");
+keyArray[2] = new keyArrayItem("M", "menuShowHide();", null, "ctrlKey");
 enableShortcuts();
 
 function onloadFunctions() {
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Mon Jan 28 13:56:07 2008 +0000
@@ -105,7 +105,7 @@
     <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
 <TR>
-          <TD  width="2%"> <A href="#" onclick="mostrarMenu();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
+          <TD  width="2%"> <A href="#" onclick="menuShowHide();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
             <img src="../../../../../web/images/Menu.jpg"  alt="Menu" title="Menu" border="0" id="buttonMenu"></IMG></A></TD>
           <TD  width="1%">&nbsp;</TD>
           <TD  width="2%"> <A href="#" onclick="submitCommandForm('DEFAULT',false,null,null,'frameAplicacion');return false;" onmouseover="window.status='Update';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
--- a/src/org/openbravo/erpCommon/utility/KeyMap.java	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/KeyMap.java	Mon Jan 28 13:56:07 2008 +0000
@@ -122,7 +122,7 @@
   public String getSortTabKeyMaps() {
     StringBuffer script = new StringBuffer();
     script.append("\nvar keyArray = new Array(\n");
-    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("new keyArrayItem(\"M\", \"menuShowHide('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
     script.append("enableShortcuts();");
     return script.toString();
@@ -136,7 +136,7 @@
   public String getRelationKeyMaps() {
     StringBuffer script = new StringBuffer();
     script.append("\nvar keyArray = new Array(\n");
-    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\"),\n");
+    script.append("new keyArrayItem(\"M\", \"menuShowHide('buttonMenu');\", null, \"ctrlKey\"),\n");
     script.append("new keyArrayItem(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
     script.append("new keyArrayItem(\"E\", \"submitCommandForm('EDIT', true, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
     script.append("new keyArrayItem(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
@@ -154,7 +154,7 @@
   public String getEditionKeyMaps(boolean isNew) {
     StringBuffer script = new StringBuffer();
     script.append("\nvar keyArray = new Array(\n");
-    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("new keyArrayItem(\"M\", \"menuShowHide('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(",new keyArrayItem(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
     script.append(",new keyArrayItem(\"L\", \"submitCommandForm('RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
     script.append(",new keyArrayItem(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
@@ -204,7 +204,7 @@
   public String getFormKeyMaps() {
     StringBuffer script = new StringBuffer();
     script.append("\nvar keyArray = new Array(\n");
-    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("new keyArrayItem(\"M\", \"menuShowHide('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
     script.append("enableShortcuts();");
 
@@ -219,7 +219,7 @@
   public String getReportKeyMaps() {
     StringBuffer script = new StringBuffer();
     script.append("\nvar keyArray = new Array(\n");
-    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("new keyArrayItem(\"M\", \"menuShowHide('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
     script.append("enableShortcuts();");
 
--- a/src/org/openbravo/erpCommon/utility/LeftTabsBar.java	Mon Jan 28 12:10:38 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/LeftTabsBar.java	Mon Jan 28 13:56:07 2008 +0000
@@ -47,7 +47,7 @@
     text.append("        </tr>\n");
     text.append("        <tr>\n");
     text.append("          <td>\n");
-    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"mostrarMenu('buttonMenu');return false;\">\n");
+    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"menuShowHide('buttonMenu');return false;\">\n");
     text.append("                <IMG class=\"Main_LeftTabsBar_ButtonLeft_Icon Main_LeftTabsBar_ButtonLeft_Icon_arrow_hide\" src=\"").append(base_direction).append("/images/blank.gif\" border=\"0\" id=\"buttonMenu\"></IMG>\n");
     text.append("              </A>\n");
     text.append("          </td>\n");
@@ -97,7 +97,7 @@
     text.append("        </tr>\n");
     text.append("        <tr>\n");
     text.append("          <td>\n");
-    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"mostrarMenu('buttonMenu');return false;\">\n");
+    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"menuShowHide('buttonMenu');return false;\">\n");
     text.append("                <IMG class=\"Main_LeftTabsBar_ButtonLeft_Icon Main_LeftTabsBar_ButtonLeft_Icon_arrow_hide\" src=\"").append(base_direction).append("/images/blank.gif\" border=\"0\" id=\"buttonMenu\"></IMG>\n");
     text.append("              </A>\n");
     text.append("          </td>\n");
@@ -147,7 +147,7 @@
     text.append("        </tr>\n");
     text.append("        <tr>\n");
     text.append("          <td>\n");
-    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"mostrarMenu('buttonMenu');return false;\">\n");
+    text.append("              <A class=\"Main_LeftTabsBar_ButtonLeft\" href=\"#\" onclick=\"menuShowHide('buttonMenu');return false;\">\n");
     text.append("                <IMG class=\"Main_LeftTabsBar_ButtonLeft_Icon Main_LeftTabsBar_ButtonLeft_Icon_arrow_hide\" src=\"").append(base_direction).append("/images/blank.gif\" border=\"0\" id=\"buttonMenu\"></IMG>\n");
     text.append("              </A>\n");
     text.append("          </td>\n");
--- a/web/js/utils.js	Mon Jan 28 12:10:38 2008 +0000
+++ b/web/js/utils.js	Mon Jan 28 13:56:07 2008 +0000
@@ -1695,7 +1695,7 @@
 * @returns True if the operation was made correctly, false if not.
 * @see #changeClass
 */
-function mostrarMenu(id) {
+function menuShowHide(id) {
   if (!top.frameMenu) window.open(baseFrameServlet, "_blank");
   else {
     var frame = top.document;