Restore hidden param to enable feature for the release 3.1. I suggest to test it during on version untill making it visible by default.

This commit is contained in:
Laurent Destailleur 2011-07-13 08:57:21 +00:00
parent b66cea6955
commit e23713845f

View File

@ -24,7 +24,7 @@
* \file htdocs/compta/paiement.php
* \ingroup compta
* \brief Page to create a payment
* \version $Id: paiement.php,v 1.110 2011/07/11 09:32:35 cdelambert Exp $
* \version $Id: paiement.php,v 1.111 2011/07/13 08:57:21 eldy Exp $
*/
require('../main.inc.php');
@ -253,7 +253,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if (! empty($conf->global->PAYPAL_BANK_ACCOUNT)) $accountid=$conf->global->PAYPAL_BANK_ACCOUNT;
$paymentnum=$facture->ref_int;
}
if ($conf->use_javascript_ajax)
if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{
print "\n".'<script type="text/javascript" language="javascript">';
print 'jQuery(document).ready(function () {';
@ -371,7 +371,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '</tr>';
// Payment amount
if ($conf->use_javascript_ajax)
if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{
print '<tr><td><span class="fieldrequired">'.$langs->trans('AmountPayment').'</span></td>';
print '<td>';
@ -512,7 +512,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if ($action != 'add_paiement')
{
if ($conf->use_javascript_ajax)
if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{
print img_picto($langs->trans('AddRemind'),'rightarrow.png','id="'.$objp->facid.'" "');
}
@ -671,5 +671,5 @@ if (! GETPOST('action'))
$db->close();
llxFooter('$Date: 2011/07/11 09:32:35 $ - $Revision: 1.110 $');
llxFooter('$Date: 2011/07/13 08:57:21 $ - $Revision: 1.111 $');
?>