Skip to content
Snippets Groups Projects
Commit 529c6144 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

client: v1.2.1; Fixed date submit format

parent ce659114
No related branches found
No related tags found
No related merge requests found
...@@ -64,10 +64,10 @@ $(document).ready(function() ...@@ -64,10 +64,10 @@ $(document).ready(function()
M.Datepicker.init(elements, { M.Datepicker.init(elements, {
selectMonths: true, // Creates a dropdown to control month selectMonths: true, // Creates a dropdown to control month
selectYears: 15, // Creates a dropdown of 15 years to control year selectYears: 15, // Creates a dropdown of 15 years to control year
format: 'dd.mm.yyyy', format: 'yyyy-mm-dd',
formatSubmit: 'yyyy-mm-dd',
setDefaultDate: true, setDefaultDate: true,
defaultDate: new Date() defaultDate: new Date(),
showClearBtn: true
}); });
} }
else else
...@@ -78,10 +78,10 @@ $(document).ready(function() ...@@ -78,10 +78,10 @@ $(document).ready(function()
let datePickers = document.querySelectorAll('.datepicker'); let datePickers = document.querySelectorAll('.datepicker');
M.Datepicker.init(datePickers, { M.Datepicker.init(datePickers, {
selectMonths: true, // Creates a dropdown to control month selectMonths: true,
selectYears: 15, // Creates a dropdown of 15 years to control year selectYears: 15,
format: 'dd.mm.yyyy', format: 'yyyy-mm-dd',
formatSubmit: 'yyyy-mm-dd' showClearBtn: true
}); });
createTrainMap(); createTrainMap();
......
{ {
"version": { "version": {
"name": "v1.2.0", "name": "v1.2.1",
"code": 11, "code": 12,
"date": "21.06.20" "date": "28.06.20"
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment