Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Calendar does not allow to set default configuration about monthsNames and weekdays #1208

Open
lquintana opened this issue Aug 12, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@lquintana
Copy link

/**
 * possible and momentary solution
 * @weekdays = []
 * @monthNames = [] 
 */
ch.Calendar.prototype._defaults = {
        'monthsNames': monthsNames,
        'weekdays': weekdays,
        'format': 'DD/MM/YYYY'
};
@hmammana hmammana added the bug label Feb 10, 2015
@hmammana hmammana added this to the v2.0.0 milestone Feb 10, 2015
@hmammana
Copy link
Contributor

The problem isn't in the code that is pasted on the comment. The problem is in the following lines
https://github.com/mercadolibre/chico/blob/master/src/shared/js/Calendar.js#L446
https://github.com/mercadolibre/chico/blob/master/src/shared/js/Calendar.js#L459
It have to get the ._options instead ._defaults

@atma atma assigned atma and unassigned lquintana Nov 2, 2015
@battaglr battaglr removed this from the v2.0.0 milestone Mar 2, 2017
@battaglr battaglr added this to the v2.0.13 milestone Jul 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants