* A few fixes to standard MCI codes

* Load user groups properly
* Configurable/themeable date time formats
This commit is contained in:
Bryan Ashby 2015-07-22 21:35:35 -06:00
parent 40a4f8caba
commit 4288c5b2e9
6 changed files with 27 additions and 6 deletions

View file

@ -52,8 +52,18 @@ function loadTheme(themeID, cb) {
}
}
return pwChar;
},
getDateFormat : function(style) {
style = style || 'short';
var format = Config.defaults.dateTimeFormat[style] || 'MM/DD/YYYY';
if(_.has(theme, 'customization.defaults.dateTimeFormat')) {
return theme.customization.defaults.dateTimeFormat[style] || format;
}
return format;
}
}
};
cb(null, theme);
} catch(e) {