From 10f8a52dccb9eda5d78f219258394bf047f832f3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 13 Aug 2009 17:12:31 +0000 Subject: [PATCH] Fix: Pb with popu calendar in EI8 and security options of IE6 --- htdocs/lib/datepicker.php | 12 ++++++------ htdocs/lib/lib_head.js | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/lib/datepicker.php b/htdocs/lib/datepicker.php index 7c17568e527..35a3c2c04e5 100644 --- a/htdocs/lib/datepicker.php +++ b/htdocs/lib/datepicker.php @@ -122,7 +122,7 @@ function xyzToUnixTimestamp($mysqldate){ } function displayBox($selectedDate,$month,$year){ - global $dolibarr_main_url_root,$langs,$conf; + global $langs,$conf; //print "$selectedDate,$month,$year"; $thedate=dol_mktime(12,0,0,$month,1,$year); @@ -154,15 +154,15 @@ function displayBox($selectedDate,$month,$year){ << + onClick="loadMonth('','','','')"><< ','','')">< + onClick="loadMonth('','','','')">< ','')">trans("MonthOfDay") ?> + onClick="loadMonth('','','','')">trans("MonthOfDay") ?> ','','')">> + onClick="loadMonth('','','','')">> >> + onClick="loadMonth('','','','')">>> trans("ShortSunday") ?> diff --git a/htdocs/lib/lib_head.js b/htdocs/lib/lib_head.js index d0607f9cff5..2ede96e8ffa 100644 --- a/htdocs/lib/lib_head.js +++ b/htdocs/lib/lib_head.js @@ -162,7 +162,8 @@ function loadMonth(base,month,year,ymd) var req=null; req=loadXMLDoc(theURL,null,false); - //alert(theURL+req.responseText); // L'url doit avoir la meme racine que la pages et elements sinon pb de securite. + if (req.responseText == '') alert('Failed to get URL '.theURL); + //alert(theURL+' - '+req.responseText); // L'url doit avoir la meme racine que la pages et elements sinon pb de securite. showDP.box.innerHTML=req.responseText; }