Disable dates in pickadate-picker and refresh it

后端 未结 3 1382
囚心锁ツ
囚心锁ツ 2020-12-19 07:04

I try to disable some dates after I have initialised the Date Picker.

I am initialising the picker like this:

$( document ).ready(function() {
    $(         


        
3条回答
  •  遥遥无期
    2020-12-19 07:36

    ¿Are you sure your ajax request is being called?

    Some old, annoying, deprecated, not fully-functional browsers (yes, IE, I'm talking about you) would store ajax request in cache and return the first result in every subsequent request. As you have not marked your request as POST, it's possible partners/getInactiveDays is really only being called once.

    Add method: 'POST' to your request, or append a random string (even POST request were sometimes stored in IE8) to your url as an unusued parameter (e.g. url:'partnets/getInactiveDays?randomizer='+new Date().getTime()) to prevent cache storing if they are not being excecuted.

提交回复
热议问题