1. Minor changes to front-end text for temporal vis per Katy's requests.

This commit is contained in:
cdtank 2011-04-18 21:37:23 +00:00
parent c52e8362bc
commit a2069d1575
4 changed files with 22 additions and 10 deletions

View file

@ -103,4 +103,10 @@ if (typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
}
function toTitleCase(str) {
return str.replace(/\w\S*/g, function(txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
}