src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html
changeset 347 adf8b19cf2a8
parent 0 0247c26f10c6
child 528 7aa737db257f
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,8 +44,8 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 
 
-function activarTeclas() {
-  arrTeclas[arrTeclas.length] = new Teclas("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");
+function enableLocalShortcuts() {
+  keyArray[keyArray.length] = 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");
 }
 
 function depurar(action) {
@@ -131,10 +131,10 @@
   new TypeAheadCombo("inpisreceipt");
   new TypeAheadCombo("inpcBankaccountId");
   new TypeAheadCombo("inpadOrgId");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 </SCRIPT></HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1">