Fix: An ajax return must not include html header.

This commit is contained in:
Laurent Destailleur 2010-08-19 00:49:31 +00:00
parent 983b5c40e7
commit a4234c1768
3 changed files with 9 additions and 1 deletions

View File

@ -41,15 +41,17 @@ require('../main.inc.php');
$langs->load("products");
$langs->load("main");
/*
* View
*/
//top_htmlhead("", "", 1); // Disabled. An ajax return must not include html header.
//print '<body class="nocellnopadd">'."\n";
dol_syslog(join(',',$_POST));
// Generation liste de produits
if (! empty($_GET['keysearch']) || ! empty($_GET['term']))
{

View File

@ -35,6 +35,11 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1');
require('../main.inc.php');
/*
* View
*/
//top_htmlhead("", "", 1, 1); // Disabled. An ajax return must not include html header.
//print '<body id="mainbody">';

View File

@ -31,6 +31,7 @@ if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
require('../main.inc.php');
/*
* View
*/