Changeset 2572

Show
Ignore:
Timestamp:
07/23/10 17:24:30 (7 weeks ago)
Author:
mattlevine
Message:

1. Fixing issue with setting jsDateKey()

Location:
branches/5.2/www/requirements/mura/resourceBundle
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/5.2/www/requirements/mura/resourceBundle/resourceBundleFactory.cfc

    r2400 r2572  
    833833 
    834834<!--- now we create a date so we can parse it and figure out the date format and then create a date validation key ---> 
    835 <cfif not len(arguments.mySession.dateKey) or not len(arguments.mySession.dateKeyFormat)> ---> 
     835<cfif not len(arguments.mySession.dateKey) or not len(arguments.mySession.dateKeyFormat)> 
    836836        <cfset utils=getUtils(arguments.mySession.locale)> 
    837837        <cfset arguments.mySession.dateKey=utils.getJSDateKey()> 
  • branches/5.2/www/requirements/mura/resourceBundle/utils.cfc

    r2560 r2572  
    3232         
    3333                <cfset loadLocale()> 
     34                 
    3435                <cfreturn this /> 
    3536        </cffunction> 
     
    350351        <cfloop list="#formatTest#" index="f" delimiters="#dtCh#"> 
    351352                <cfif listFind("2018,18",f)>     
    352                         <cfset dateKeyFormat=listAppend(dateKeyFormat,"YYYY",dtCh)> 
     353                        <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"YYYY",dtCh)> 
    353354                <cfelseif f eq 11> 
    354                         <cfset dateKeyFormat=listAppend(dateKeyFormat,"MM",dtCh)> 
     355                        <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"MM",dtCh)> 
    355356                <cfelse> 
    356                         <cfset dateKeyFormat=listAppend(dateKeyFormat,"DD",dtCh)> 
     357                        <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"DD",dtCh)> 
    357358                </cfif> 
    358359        </cfloop> 
     
    366367        </cfif> 
    367368         
    368         <cfset datekeyExample=lsDateFormat(createDate(2018,11,10),datekeyFormat)/> 
    369  
    370 <cfsavecontent variable="jsDateKey"> 
     369        <cfset variables.datekeyExample=lsDateFormat(createDate(2018,11,10),datekeyFormat)/> 
     370 
     371<cfsavecontent variable="variables.jsDateKey"> 
    371372<cfoutput><script type="text/javascript"> 
    372 var dtExample="#datekeyExample#"; 
     373var dtExample="#variables.datekeyExample#"; 
    373374var dtCh="#dtCh#"; 
    374375var dtFormat =[#dtFormat#];