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() {
$.translate_format = function(str) {
var translation = {
'd':'dd',
'j':'d',
'z':'o',
'm':'mm',
'F':'MM',
'n':'m',
'Y':'yy'
'DD': 'oo',
'D': 'o',
'EEEE': 'DD',
'EEE': 'D',
'MMMM': '||', // Double replace necessary
'MMM': '|',
'MM': 'mm',
'M': 'm',
'||': 'MM',
'|': 'M',
'yyyy': '`',
'yyy': '`',
'yy': 'y',
'y': 'yy',
'`': 'yy'
};
// Change PHP formats to datepicker ones
$.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