From 6d6231aad9230b1649046b5eedbaad3c64c16e0f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 29 Dec 2011 23:50:02 +0100 Subject: [PATCH] New: Add class for calendar picto link --- htdocs/core/class/html.form.class.php | 6 +++--- htdocs/core/lib/functions.lib.php | 8 ++++---- htdocs/theme/eldy/style.css.php | 3 +++ 3 files changed, 10 insertions(+), 7 deletions(-) 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.=''; + $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.=' '; } @@ -3547,7 +3547,7 @@ class Form $yes="1"; $no="0"; } - + $disabled = ($disabled ? ' disabled="disabled"' : ''); $resultyesno = '