forked from Wavyzz/dolibarr
rendre plus gnrique le fonction
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
// \version $Revision$
|
||||
|
||||
|
||||
function dolibarr_type_reload(param)
|
||||
function dolibarr_type_reload(param,formAction,elementName)
|
||||
{
|
||||
document.formsoc.action.value="create";
|
||||
document.formsoc.private.value=param;
|
||||
document.formsoc.action.value=formAction;
|
||||
document.formsoc.elementName.value=param;
|
||||
document.formsoc.cleartype.value=1;
|
||||
document.formsoc.submit();
|
||||
}
|
||||
|
||||
@@ -297,11 +297,11 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] ||
|
||||
print "<br>\n";
|
||||
print $langs->trans("ThirdPartyType").': ';
|
||||
print '<input type="radio" class="flat" name="private" value="0"'.(! $_REQUEST["private"]?' checked="true"':'');
|
||||
print 'onclick="dolibarr_type_reload(0)"';
|
||||
print 'onclick="dolibarr_type_reload(0,\'create\',\'private\')"';
|
||||
print '> '.$langs->trans("Company/Fundation");
|
||||
print ' ';
|
||||
print '<input type="radio" class="flat" name="private" value="1"'.(! $_REQUEST["private"]?'':' checked="true"');
|
||||
print 'onclick="dolibarr_type_reload(1)"';
|
||||
print 'onclick="dolibarr_type_reload(1,\'create\',\'private\')"';
|
||||
print '> '.$langs->trans("Individual");
|
||||
print ' ('.$langs->trans("ToCreateContactWithSameName").')';
|
||||
print "<br>\n";
|
||||
|
||||
Reference in New Issue
Block a user