diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index dfd61738c86..896b4e59922 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -3236,7 +3236,7 @@ class Form
{
$retstring.='defaultlang.'\');">'.img_object($langs->trans("SelectDate"),'calendarday').' ';
+ $retstring.=' onClick="showDP(\''.$base.'\',\''.$prefix.'\',\''.$langs->trans("FormatDateShortJava").'\',\''.$langs->defaultlang.'\');">'.img_object($langs->trans("SelectDate"),'calendarday','class="datecallink"').'';
}
$retstring.=' '."\n";
@@ -3401,7 +3401,7 @@ class Form
// If reset_scripts is not empty, print the button with the reset_scripts in OnClick
if ($reset_scripts)
{
- $retstring.='';
+ $retstring.='';
$retstring.=$langs->trans("Now");
$retstring.=' ';
}
@@ -3547,7 +3547,7 @@ class Form
$yes="1";
$no="0";
}
-
+
$disabled = ($disabled ? ' disabled="disabled"' : '');
$resultyesno = ''."\n";
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 113818a21bb..c411388e1a4 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -149,7 +149,7 @@ if (! function_exists('json_decode'))
* Function to return value of a static property when class
* name is dynamically defined (not hard coded).
* This is because $myclass::$myvar works from PHP 5.3.0+ only
- *
+ *
* @param string $class Class name
* @param string $member Name of property
* @return string Return value of static property.
@@ -159,7 +159,7 @@ function getStaticMember($class, $member)
if (is_object($class)) $class = get_class($class);
$classObj = new ReflectionClass($class);
$result = null;
-
+
foreach($classObj->getStaticProperties() as $prop => $value)
{
if($prop == $member)
@@ -168,7 +168,7 @@ function getStaticMember($class, $member)
break;
}
}
-
+
return $result;
}
@@ -1722,7 +1722,7 @@ function dol_trunc($string,$size=40,$trunc='right',$stringencoding='UTF-8',$nodo
* @param string $alt Text of alt on image
* @param string $picto Name of image to show object_picto (example: user, group, action, bill, contract, propal, product, ...)
* For external modules use imagename@mymodule to search into directory "img" of module.
- * @param string $options Add more attribute on img tag
+ * @param string $options Add more attribute on img tag (ie: class="datecallink")
* @param int $pictoisfullpath If 1, image path is a full path
* @return string Return img tag
* @see #img_picto, #img_picto_common
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index ade21f2dcc3..2f59d15adea 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1540,6 +1540,8 @@ border-radius: 6px;
/* Calendar */
/* ============================================================================== */
+img.datecallink { padding-left: 2px !important; padding-right: 2px !important;}
+
.ui-datepicker-trigger {
vertical-align: middle;
cursor: pointer;
@@ -1617,6 +1619,7 @@ cursor: pointer;
}
+
/* ============================================================================== */
/* Afficher/cacher */
/* ============================================================================== */