Add weekday selection and client side date formatting
This commit is contained in:
@@ -13,6 +13,7 @@ var $translations = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$transformation_mappings = {
|
||||
downcase: 'toLowerCase',
|
||||
upcase: 'toUpperCase'
|
||||
@@ -62,4 +63,8 @@ function setTranslations(selector){
|
||||
}else{
|
||||
$('[data-t]').each(function(){$(this).text(t($(this).data('t'),$(this).data('tAttributes')))})
|
||||
}
|
||||
moment.lang($locale);
|
||||
$('[data-time]').each(function(){
|
||||
$(this).text(moment($(this).data('time')).format($(this).data('timeFormat') || 'dd D HH:MM'))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user