mercadolibre / chico

A collection of easy-to-use UI components.
http://chico.mercadolibre.com
MIT License
342 stars 91 forks source link

Calendar/DatePicker: monthsName and weekdays are used from this._defaults #1187

Closed lean8086 closed 9 years ago

maximomrtnz commented 10 years ago

I had the same issue, i solved it, changing the following lines:

7661 --> t.push('' + that._default.weekdays[dayIndex] + '');

by

7661 --> t.push('' + that._options.weekdays[dayIndex] + '');

And

7674 --> '' + that._default.monthsNames[date.month - 1] + ' - ' + date.year + '',

by

7674 --> '' + that._options.monthsNames[date.month - 1] + ' - ' + date.year + '',

And work for me!

Hope this help!

regards!