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

disabledTimeIntervals it only considers array[0] and array[1] #366

Open
ictnw opened this issue Jan 29, 2021 · 0 comments
Open

disabledTimeIntervals it only considers array[0] and array[1] #366

ictnw opened this issue Jan 29, 2021 · 0 comments

Comments

@ictnw
Copy link

ictnw commented Jan 29, 2021

tempusdominus-bootstrap-4
row-> 634

$.each(this._options.disabledTimeIntervals, function () {
        if (targetMoment.isBetween(this[0], this[1])) {
           found = true;
          return false;
}

to:

 $.each(this._options.disabledTimeIntervals, function (index) {
	if (index % 2) return true
	if (targetMoment.isBetween (this [index], this [index+1])) {
	   found = true;
	   return false;
	}

unfortunately it doesn't seem to work well

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