Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blockWeekDays option to date field. #1079

Merged
merged 1 commit into from
Oct 28, 2015

Conversation

MikeZhur
Copy link
Contributor

To be able to block selection of some days of week (for example, weekends)
I added blockWeekDays options to date field. It's array of week day
numbers. (1 - monday, 2 - tuesday, 3 - wensday, 4 - thursday, 5 - friday,
6 - saturday, 0 - sunday)

To be able to block selection of some days of week (for example, weekends)
I added blockWeekDays options to date field. It's array of week day
numbers. (1 - monday, 2 - tuesday, 3 - wensday, 4 - thursday, 5 - friday,
6 - saturday, 0 - sunday)
end : '', // string or jquery object
blocked : {}, // { '4/11/2011': 'yes' }
colored : {}, // { '4/11/2011': 'red:white' }
blockWeekDays : null // array of numbers of weekday to block
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be empty array by default

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I don't mind. Let in be an empty array. I thought it must work if this option was not specified (for backward compatibility), so I added this checks. But default empty array seems to be ok.

vitmalina added a commit that referenced this pull request Oct 28, 2015
Add blockWeekDays option to date field.
@vitmalina vitmalina merged commit 8c6adb7 into vitmalina:master Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants