Last active
August 16, 2017 21:52
-
-
Save sbounmy/cccf5f7f5ae153d02bb8a17d8401f78c to your computer and use it in GitHub Desktop.
Make flatpickr to work witgh squarespace lightbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// Static: true fixes when flatpickr is in lightbox | |
$('.lightbox-handle').on('click', function() { | |
$("#text-yui_3_17_2_1_1500409984147_44339-field").flatpickr({ | |
static: true, | |
locale: 'fr', | |
mode: "range", | |
altFormat: "d M", | |
altInput: true, | |
dateFormat: 'd-m-Y', | |
minDate: 'today' | |
}); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sqs-modal-lightbox-content { | |
z-index: 1000 !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment