root/codedepot/trunk/projects/LookupManager/views/lookups/addLookupHelper.cfm @ 2106

Revision 2106, 253 bytes (checked in by lmajano, 4 years ago)

lookup manager additions.

Line 
1<cfscript>
2function capCase(word){
3        if(len(word) gt 1)
4                return left(uCase(word),1) & right(word,len(word)-1);
5        else
6                return word;
7}
8function singularize(word){
9        if( right(word,1) eq "s" ){
10                return left(word,len(word)-1);
11        }
12}
13</cfscript>
Note: See TracBrowser for help on using the browser.