Ajout fonction ajax - dsactive par dfaut
This commit is contained in:
parent
f7c9665962
commit
818e1aa99c
@ -244,6 +244,11 @@ else
|
||||
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("DisableJavascript").'</td><td>';
|
||||
print yn($conf->global->MAIN_DISABLE_JAVASCRIPT)."</td></tr>";
|
||||
|
||||
// Disable ajax
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("DisableAjax").'</td><td>';
|
||||
print yn($conf->global->MAIN_DISABLE_AJAX)."</td></tr>";
|
||||
|
||||
// Calendrier en popup
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'"><td width="35%">'.$langs->trans("UsePopupCalendar").'</td><td>';
|
||||
|
||||
@ -615,7 +615,7 @@ class Form
|
||||
function select_produits($selected='',$htmlname='productid',$filtretype='',$limit=20,$price_level=0)
|
||||
{
|
||||
global $langs,$conf,$user;
|
||||
if($regis=="je_te_laisse_faire_la_modif")
|
||||
if($conf->use_ajax)
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript" src="<?=DOL_URL_ROOT?>/lib/prototype.js"></script>
|
||||
|
||||
@ -362,6 +362,10 @@ if (isset($conf->global->MAIN_USE_PREVIEW_TABS)) $conf->use_preview_tabs=$conf->
|
||||
$conf->use_javascript=1;
|
||||
if (isset($conf->global->MAIN_DISABLE_JAVASCRIPT)) $conf->use_javascript=! $conf->global->MAIN_DISABLE_JAVASCRIPT;
|
||||
|
||||
// conf->use_ajax
|
||||
$conf->use_ajax=""; // Pas d' Ajax par defaut
|
||||
if (isset($conf->global->MAIN_DISABLE_AJAX)) $conf->use_ajax=! $conf->global->MAIN_DISABLE_AJAX;
|
||||
|
||||
// conf->use_popup_calendar
|
||||
$conf->use_popup_calendar=""; // Pas de date popup par defaut
|
||||
if (isset($conf->global->MAIN_POPUP_CALENDAR)) $conf->use_popup_calendar=$conf->global->MAIN_POPUP_CALENDAR;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user