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;
}