[jifty-devel] Re: [Jifty-commit] r1763 - in jifty/trunk:
share/web/static/js/yui
Jesse Vincent
jesse at bestpractical.com
Sat Aug 5 15:04:35 EDT 2006
Will you add a header to the file stating what we modified?
On Sat, Aug 05, 2006 at 03:01:45PM -0400, jifty-commit at lists.jifty.org wrote:
> Author: trs
> Date: Sat Aug 5 15:01:42 2006
> New Revision: 1763
>
> Modified:
> jifty/trunk/ (props changed)
> jifty/trunk/share/web/static/js/yui/calendar.js
>
> Log:
> r15093 at zot: tom | 2006-08-05 15:01:29 -0400
> Explicitly specify a radix of 10 (decimal) for the parseInt calls used in Yahoo's calendar widget when parsing the date to initially display
>
>
> Modified: jifty/trunk/share/web/static/js/yui/calendar.js
> ==============================================================================
> --- jifty/trunk/share/web/static/js/yui/calendar.js (original)
> +++ jifty/trunk/share/web/static/js/yui/calendar.js Sat Aug 5 15:01:42 2006
> @@ -512,8 +512,10 @@
> if (monthyear)
> {
> var aMonthYear = monthyear.split(this.Locale.DATE_FIELD_DELIMITER);
> - month = parseInt(aMonthYear[this.Locale.MY_MONTH_POSITION-1]);
> - year = parseInt(aMonthYear[this.Locale.MY_YEAR_POSITION-1]);
> + /* The following two calls to parseInt had an explicit radix added
> + so dates with leading zeros aren't parsed as octal. */
> + month = parseInt(aMonthYear[this.Locale.MY_MONTH_POSITION-1], 10);
> + year = parseInt(aMonthYear[this.Locale.MY_YEAR_POSITION-1], 10);
> } else {
> month = this.today.getMonth()+1;
> year = this.today.getFullYear();
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
>
--
More information about the jifty-devel
mailing list