/*
- * (c) 2005-2011 Richard Cowin (http://openrico.org)
- * (c) 2005-2011 Matt Brown (http://dowdybrown.com)
+ * (c) 2005-2012 Richard Cowin (http://openrico.org)
+ * (c) 2005-2012 Matt Brown (http://dowdybrown.com)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
* and limitations under the License.
*/
-Rico.Version='3.0b2';
+Rico.Version='3.0';
Rico.theme={};
Rico.onLoadCallbacks=[];
Rico.windowIsLoaded=false;
Rico.keys=function(obj) {
var objkeys=[];
for(var k in obj)
- objkeys.push[k];
+ objkeys.push(k);
return objkeys;
};
* @param fmt string specifying the output format, may be one of the following:<dl>
* <dt>locale or localeDateTime</dt>
* <dd>use javascript's built-in toLocaleString() function</dd>
- * <dt>localeDate</dt>
+ * <dt>localeDate or 'Long Date'</dt>
* <dd>use javascript's built-in toLocaleDateString() function</dd>
* <dt>translate or translateDateTime</dt>
* <dd>use the formats specified in the Rico.dateFmt and Rico.timeFmt properties</dd>
- * <dt>translateDate</dt>
+ * <dt>translateDate or 'Short Date'</dt>
* <dd>use the date format specified in the Rico.dateFmt property</dd>
* <dt>Otherwise</dt>
* <dd>Any combination of: yyyy, yy, mmmm, mmm, mm, m, dddd, ddd, dd, d, hh, h, HH, H, nn, ss, a/p</dd>
case 'locale':
case 'localeDateTime':
return d.toLocaleString();
+ case 'Long Date':
case 'localeDate':
return d.toLocaleDateString();
case 'translate':
case 'translateDateTime':
datefmt=this.dateFmt+' '+this.timeFmt;
break;
+ case 'Short Date':
case 'translateDate':
datefmt=this.dateFmt;
break;