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

Can't check selected year on 'monthpicker-show' event #50

Open
adammolnar opened this issue Aug 16, 2013 · 0 comments
Open

Can't check selected year on 'monthpicker-show' event #50

adammolnar opened this issue Aug 16, 2013 · 0 comments

Comments

@adammolnar
Copy link

Thanks for your really missing jQuery plugin!

For disabling months, in your examples, you use the 'monthpicker-change-year' event with a year parameter which is received from the select item. This way of disabling months if the initially shown year has any disabled months doesn't work since the 'monthpicker-change-year' event is not fired. I recommend to add a year parameter to the 'monthpicker-show' event like this:

    show: function () {
        ...
        widget.show();
        var yearSelect = widget.find('select');
        yearSelect.focus();
        this.trigger('monthpicker-show', yearSelect.val());
    },
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

No branches or pull requests

1 participant