From 3731cf6dc1696548a689ec95136a769cb298dabd Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 21 Mar 2012 10:53:33 +0000 Subject: [PATCH] The date picker fills the "time" part of the field with 00:00:00 when picking a DateTime instead of just a Date. SVN:1.2[1910] --- application/cmdbabstract.class.inc.php | 2 +- application/itopwebpage.class.inc.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index c99fa8861..7eb58c795 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -1695,7 +1695,7 @@ EOF $aEventsList[] ='validate'; $aEventsList[] ='keyup'; $aEventsList[] ='change'; - $sHTMLValue = " {$sValidationField}"; + $sHTMLValue = " {$sValidationField}"; break; case 'Duration': diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index eab881840..9f0879304 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -317,6 +317,15 @@ EOF changeMonth: true, changeYear: true }); + $(".datetime-pick").datepicker({ + showOn: 'button', + buttonImage: '../images/calendar.png', + buttonImageOnly: true, + dateFormat: 'yy-mm-dd 00:00:00', + constrainInput: false, + changeMonth: true, + changeYear: true + }); // Restore the persisted sortable order, for all sortable lists... if any $('.sortable').each(function() {