'."\n";
$s.= $text;
@@ -101,7 +101,7 @@ class Form
}
else
{
- if ($conf->use_javascript)
+ if ($conf->use_javascript_ajax)
{
$htmltext=eregi_replace('"',"\'",$htmltext);
if ($tooltipon==1 || $tooltipon==3)
@@ -378,7 +378,8 @@ class Form
$sql = "SELECT rowid, code, libelle, active";
$sql.= " FROM ".MAIN_DB_PREFIX."c_pays";
$sql.= " WHERE active = 1";
- if ($conf->use_ajax && $conf->global->CODE_DE_TEST == 1)
+ // \TODO A virer
+ if ($conf->use_javascript_ajax && $conf->global->CODE_DE_TEST)
{
if (is_numeric($selected))
{
@@ -394,7 +395,8 @@ class Form
$resql=$this->db->query($sql);
if ($resql)
{
- if ($conf->use_ajax && $conf->global->CODE_DE_TEST == 1)
+ // \TODO A virer
+ if ($conf->use_javascript_ajax && $conf->global->CODE_DE_TEST)
{
$langs->load("companies");
$obj = $this->db->fetch_object($resql);
@@ -681,7 +683,7 @@ class Form
$sql = "SELECT s.rowid, s.nom FROM";
$sql.= " ".MAIN_DB_PREFIX ."societe as s";
if ($filter) $sql.= " WHERE ".$filter;
- if ($selected && $conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT)
+ if ($selected && $conf->use_javascript_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT)
{
if ($filter)
{
@@ -699,7 +701,7 @@ class Form
$resql=$this->db->query($sql);
if ($resql)
{
- if ($conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT)
+ if ($conf->use_javascript_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT)
{
$socid = 0;
if ($selected)
@@ -1072,7 +1074,7 @@ class Form
{
$num = $this->db->num_rows($result);
- if ($conf->use_ajax)
+ if ($conf->use_javascript_ajax)
{
if (! $num)
{
@@ -1227,7 +1229,7 @@ class Form
$num = $this->db->num_rows($result);
- if ($conf->use_ajax)
+ if ($conf->use_javascript_ajax)
{
if (! $num)
{
@@ -2767,7 +2769,7 @@ class Form
/*
* Affiche date en popup
*/
- if ($conf->use_javascript && $conf->use_popup_calendar)
+ if ($conf->use_javascript_ajax && $conf->use_popup_calendar)
{
//print "e".$set_time." t ".$conf->format_date_short;
if ($set_time > 0)
@@ -2818,7 +2820,7 @@ class Form
/*
* Affiche date en select
*/
- if (! $conf->use_javascript || ! $conf->use_popup_calendar)
+ if (! $conf->use_javascript_ajax || ! $conf->use_popup_calendar)
{
/*
if ($set_time == -1)
diff --git a/htdocs/includes/boxes/modules_boxes.php b/htdocs/includes/boxes/modules_boxes.php
index 8e6e8a71313..0727bd0ba36 100644
--- a/htdocs/includes/boxes/modules_boxes.php
+++ b/htdocs/includes/boxes/modules_boxes.php
@@ -124,7 +124,7 @@ class ModeleBoxes
print '
0) { print ' colspan="'.$nbcol.'"'; }
print '>';
- if ($conf->use_ajax)
+ if ($conf->use_javascript_ajax)
{
print '| ';
}
@@ -138,7 +138,7 @@ class ModeleBoxes
{
print ' '.img_picto($head['subtext'],$head['subpicto']).'';
}
- if ($conf->use_ajax)
+ if ($conf->use_javascript_ajax)
{
print ' | ';
print img_picto($langs->trans("MoveBox",$this->box_id),'uparrow','style="cursor:move;"');
diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php
index 05ee0bffe2c..48765c57f64 100644
--- a/htdocs/includes/menus/barre_left/eldy_backoffice.php
+++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php
@@ -183,7 +183,7 @@ class MenuLeft {
if ($user->rights->societe->creer)
{
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?action=create", $langs->trans("MenuNewThirdParty"));
- if (! $conf->use_javascript) $newmenu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&private=1",$langs->trans("MenuNewPrivateIndividual"));
+ if (! $conf->use_javascript_ajax) $newmenu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&private=1",$langs->trans("MenuNewPrivateIndividual"));
}
if(is_dir("societe/groupe"))
diff --git a/htdocs/index.php b/htdocs/index.php
index 38182ff159b..d2fb1e8e861 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -619,7 +619,7 @@ if (sizeof($boxarray))
print " | ";
}
-if ($conf->use_ajax)
+if ($conf->use_javascript_ajax)
{
print "\n";
print ''."\n";
}
- if (! $disablejs && $conf->use_ajax)
+ if (! $disablejs && $conf->use_javascript_ajax)
{
require_once DOL_DOCUMENT_ROOT.'/lib/ajax.lib.php';
@@ -976,7 +976,7 @@ function llxFooter($foot='',$limitIEbug=1)
print "\n";
}
- if ($conf->use_javascript)
+ if ($conf->use_javascript_ajax)
{
print '';
}
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index 9f7515dccb2..8f629a76ad6 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -48,7 +48,7 @@ if (! $user->rights->produit->lire) accessforbidden();
//Récupère le résultat de la recherche Ajax
//Todo: voir pour le supprimer par la suite
-if ($conf->use_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT && $_POST['id_fourn_id'])
+if ($conf->use_javascript_ajax && $conf->global->COMPANY_USE_SEARCH_TO_SELECT && $_POST['id_fourn_id'])
{
$_POST['id_fourn'] = $_POST['id_fourn_id'];
}
diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index 92fe3ab1e79..af23a7e3b13 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -233,7 +233,7 @@ if ($_GET["id"] || $_GET["ref"])
}
if ($user->rights->produit->creer)
{
- if ($conf->use_ajax && $conf->global->MAIN_CONFIRM_AJAX)
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_CONFIRM_AJAX)
{
$url = $_SERVER["PHP_SELF"].'?id='.$product->id.'&file='.urlencode($pdir.$viewfilename).'&action=confirm_delete&confirm=yes';
print 'trans("No").'\',\'delete\')"';
diff --git a/htdocs/soc.php b/htdocs/soc.php
index 32e2145e5fb..27287cb3227 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -309,8 +309,7 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] ||
print_titre($langs->trans("NewCompany"));
- //$conf->use_javascript=0;
- if ($conf->use_javascript)
+ if ($conf->use_javascript_ajax)
{
print " \n";
print $langs->trans("ThirdPartyType").': ';
@@ -414,14 +413,14 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] ||
print ' |