diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 21b30256033..102c81840f0 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1607,7 +1607,9 @@ class Form $pageyes=$page.'&action='.$action.'&confirm=yes'; $pageno=($useajax == 2?$page.'&confirm=no':''); // Note: Title is not used by dialogConfirm function - print ''; + print ''; +// print ''; + print "\n"; $ret='ajax'; } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 8d344dbff10..77cdf6af198 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -737,18 +737,27 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs require_once DOL_DOCUMENT_ROOT.'/lib/ajax.lib.php'; // This one is required for all Ajax features - if (! defined('DISABLE_PROTOTYPE')) print ''."\n"; + if (! defined('DISABLE_PROTOTYPE')) + { + print ''."\n"; + print ''."\n"; + } // This one is required fox boxes - if (! defined('DISABLE_SCRIPTACULOUS')) print ''."\n"; + if (! defined('DISABLE_SCRIPTACULOUS')) + { + print ''."\n"; + print ''."\n"; + } // Those ones are required only with option "confirm by ajax popup" - if ($conf->global->MAIN_CONFIRM_AJAX) + if (! defined('DISABLE_PWC') && $conf->global->MAIN_CONFIRM_AJAX) { + print ''."\n"; // PWC css print ''."\n"; // Scriptaculous used by PWC - print ''."\n"; - print ''."\n"; +// print ''."\n"; +// print ''."\n"; // PWC js print ''."\n"; }