File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/Umbraco.Web.UI/umbraco_client/DateTimePicker Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,19 @@ $.datepicker._connectDatepicker = function(target, inst) {
62
62
*/
63
63
$ . datepicker . _showDatepickerOverride = $ . datepicker . _showDatepicker ;
64
64
$ . datepicker . _showDatepicker = function ( input ) {
65
+ // keep the current value
66
+ var originalval = input . value ;
67
+
68
+ // Keep the first 10 chars for now yyyy-mm-dd - this removes the time part which was breaking the standardDatePicker parsing code
69
+ input . value = originalval . length > 10 ? originalval . substring ( 0 , 10 ) : originalval ;
70
+
71
+
65
72
// Call the original method which will show the datepicker
66
73
$ . datepicker . _showDatepickerOverride ( input ) ;
67
74
75
+ // Put it back
76
+ input . value = originalval ;
77
+
68
78
input = input . target || input ;
69
79
70
80
// find from button/image trigger
You can’t perform that action at this time.
0 commit comments