régression

This commit is contained in:
Regis Houssin 2007-09-28 15:20:52 +00:00
parent c93eaee609
commit 22ccdb3ac1
2 changed files with 5 additions and 5 deletions

View File

@ -8,10 +8,10 @@
// \version $Revision$ // \version $Revision$
function dolibarr_type_reload(param,formAction,elementName) function dolibarr_type_reload(param)
{ {
document.formsoc.action.value=formAction; document.formsoc.action.value='create';
document.formsoc.elementName.value=param; document.formsoc.private.value=param;
document.formsoc.cleartype.value=1; document.formsoc.cleartype.value=1;
document.formsoc.submit(); document.formsoc.submit();
} }

View File

@ -297,11 +297,11 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] ||
print "<br>\n"; print "<br>\n";
print $langs->trans("ThirdPartyType").': &nbsp; '; print $langs->trans("ThirdPartyType").': &nbsp; ';
print '<input type="radio" class="flat" name="private" value="0"'.(! $_REQUEST["private"]?' checked="true"':''); print '<input type="radio" class="flat" name="private" value="0"'.(! $_REQUEST["private"]?' checked="true"':'');
print 'onclick="dolibarr_type_reload(0,\'create\',\'private\')"'; print 'onclick="dolibarr_type_reload(0)"';
print '> '.$langs->trans("Company/Fundation"); print '> '.$langs->trans("Company/Fundation");
print ' &nbsp; &nbsp; '; print ' &nbsp; &nbsp; ';
print '<input type="radio" class="flat" name="private" value="1"'.(! $_REQUEST["private"]?'':' checked="true"'); print '<input type="radio" class="flat" name="private" value="1"'.(! $_REQUEST["private"]?'':' checked="true"');
print 'onclick="dolibarr_type_reload(1,\'create\',\'private\')"'; print 'onclick="dolibarr_type_reload(1)"';
print '> '.$langs->trans("Individual"); print '> '.$langs->trans("Individual");
print ' ('.$langs->trans("ToCreateContactWithSameName").')'; print ' ('.$langs->trans("ToCreateContactWithSameName").')';
print "<br>\n"; print "<br>\n";