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

beforeShowDay did not override tooltip propertu after first set. #1013

Closed
samz-me opened this issue Jul 21, 2014 · 3 comments
Closed

beforeShowDay did not override tooltip propertu after first set. #1013

samz-me opened this issue Jul 21, 2014 · 3 comments

Comments

@samz-me
Copy link

samz-me commented Jul 21, 2014

$(document).ready(function () {

    var arr = [1406836800000,1409515200000,1412107200000,1414785600000]

    $('#sandbox-container .input-daterange').datepicker({
        format: "dd.MM.yyyy",
        weekStart: 1,
        todayBtn: true,
        autoclose: true,
        todayHighlight: true,
        beforeShowDay: function (date) {
            var dt = date.getTime();
            if (jQuery.inArray(dt, arr) != -1)
            {
                return {
                    tooltip: 'Not available' + date,
                    enabled: false,
                    classes: 'disabled'
                };
            }
            return {
                tooltip: '',
                enabled: true,
                classes: 'green'
            };
        }
    });
});
@webhive
Copy link

webhive commented Jul 28, 2014

Confirm it. Same problem.

@shipstar
Copy link

shipstar commented Oct 1, 2014

It looks like #838 and #1058 both address this issue, in case you still need a fix for it.

@acrobat
Copy link
Member

acrobat commented Dec 22, 2014

Closing this issue as #838 is merged

@acrobat acrobat closed this as completed Dec 22, 2014
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

4 participants