Ignore:
Timestamp:
07/23/10 17:24:30 (19 months ago)
Author:
mattlevine
Message:
  1. Fixing issue with setting jsDateKey()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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#]; 
Note: See TracChangeset for help on using the changeset viewer.