Changeset 2572
- Timestamp:
- 07/23/10 17:24:30 (7 weeks ago)
- Location:
- branches/5.2/www/requirements/mura/resourceBundle
- Files:
-
- 2 modified
-
resourceBundleFactory.cfc (modified) (1 diff)
-
utils.cfc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/www/requirements/mura/resourceBundle/resourceBundleFactory.cfc
r2400 r2572 833 833 834 834 <!--- 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)> 836 836 <cfset utils=getUtils(arguments.mySession.locale)> 837 837 <cfset arguments.mySession.dateKey=utils.getJSDateKey()> -
branches/5.2/www/requirements/mura/resourceBundle/utils.cfc
r2560 r2572 32 32 33 33 <cfset loadLocale()> 34 34 35 <cfreturn this /> 35 36 </cffunction> … … 350 351 <cfloop list="#formatTest#" index="f" delimiters="#dtCh#"> 351 352 <cfif listFind("2018,18",f)> 352 <cfset dateKeyFormat=listAppend(dateKeyFormat,"YYYY",dtCh)>353 <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"YYYY",dtCh)> 353 354 <cfelseif f eq 11> 354 <cfset dateKeyFormat=listAppend(dateKeyFormat,"MM",dtCh)>355 <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"MM",dtCh)> 355 356 <cfelse> 356 <cfset dateKeyFormat=listAppend(dateKeyFormat,"DD",dtCh)>357 <cfset variables.dateKeyFormat=listAppend(variables.dateKeyFormat,"DD",dtCh)> 357 358 </cfif> 358 359 </cfloop> … … 366 367 </cfif> 367 368 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"> 371 372 <cfoutput><script type="text/javascript"> 372 var dtExample="# datekeyExample#";373 var dtExample="#variables.datekeyExample#"; 373 374 var dtCh="#dtCh#"; 374 375 var dtFormat =[#dtFormat#];
