Skip to content
Snippets Groups Projects
Commit 94de7391 authored by aydreeihn's avatar aydreeihn
Browse files

Merge branch 'Chefkeks/client-date-picker' into features_prs/develop-next

* Chefkeks/client-date-picker:
  Fix DatePicker on client side
parents 12b0d4b6 43d1d476
No related branches found
No related tags found
No related merge requests found
...@@ -173,13 +173,21 @@ getConfig = (function() { ...@@ -173,13 +173,21 @@ getConfig = (function() {
$.translate_format = function(str) { $.translate_format = function(str) {
var translation = { var translation = {
'd':'dd', 'DD': 'oo',
'j':'d', 'D': 'o',
'z':'o', 'EEEE': 'DD',
'm':'mm', 'EEE': 'D',
'F':'MM', 'MMMM': '||', // Double replace necessary
'n':'m', 'MMM': '|',
'Y':'yy' 'MM': 'mm',
'M': 'm',
'||': 'MM',
'|': 'M',
'yyyy': '`',
'yyy': '`',
'yy': 'y',
'y': 'yy',
'`': 'yy'
}; };
// Change PHP formats to datepicker ones // Change PHP formats to datepicker ones
$.each(translation, function(php, jqdp) { $.each(translation, function(php, jqdp) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment