From b38fb205f63f020d17ffa62600a6b0c18d4b2406 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 May 2009 19:27:39 +0000 Subject: [PATCH] Fix: Ajax popup now works on IE. --- htdocs/html.form.class.php | 4 +++- htdocs/main.inc.php | 19 ++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) 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"; }