Perf: Some optimization in ajax usage.
This commit is contained in:
parent
198fce4562
commit
9a8f90679b
@ -27,6 +27,8 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
// This is to make Dolibarr working with Plesk
|
||||
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
|
||||
|
||||
@ -258,8 +258,7 @@ if (! defined('NOREQUIREDB'))
|
||||
}
|
||||
|
||||
/*
|
||||
* Creation objet $mysoc
|
||||
* Objet Societe qui contient carac de l'institution g<EFBFBD>r<EFBFBD>e par Dolibarr.
|
||||
* Create object $mysoc (A "Societe" object that contains properties of companies managed by Dolibarr.
|
||||
*/
|
||||
if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
|
||||
{
|
||||
@ -329,7 +328,7 @@ if (! defined('NOREQUIRETRAN'))
|
||||
|
||||
/*
|
||||
* Pour utiliser d'autres versions des librairies externes que les
|
||||
* versions embarqu<EFBFBD>es dans Dolibarr, d<EFBFBD>finir les constantes adequates:
|
||||
* versions embarquees dans Dolibarr, definir les constantes adequates:
|
||||
* Pour FPDF: FPDF_PATH
|
||||
* Pour PHP_WriteExcel: PHP_WRITEEXCEL_PATH
|
||||
* Pour MagpieRss: MAGPIERSS_PATH
|
||||
|
||||
@ -28,6 +28,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (empty($_GET['keysearch']) && ! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
|
||||
|
||||
@ -28,6 +28,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
|
||||
|
||||
@ -27,6 +27,7 @@ if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
|
||||
@ -46,7 +47,6 @@ if(isset($_POST['pays']) && !empty($_POST['pays']))
|
||||
$sql.= " ORDER BY libelle ASC;";
|
||||
|
||||
$resql=$db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
print '<ul>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user