title: In bootstrap datepicker change month event is not working
body: <p>I have a booking availability checking section on my website. I used <code>bootstrap datepicker</code>. </p>
  
  <p>When page loads first time, I am fetching some dates using jquery ajax &amp; php from database to disable dates on datepicker calendar. So, I used <code>setDatesDisabled</code>. On first loads of datepicker it is works fine. </p>
  
  <p>When I change month I am getting json response but dates are not disabled on datepicker. I have tried with <code>changeMonth</code> event but not working. Please help me to solve this issue</p>
  
  <p><strong>Json response</strong></p>
  
  <p><code>disableDates:["13.01.2018", "20.01.2018", "27.01.2018"]</code></p>
  
  <pre><code>$("#dateFrom").datepicker({
                  autoclose: true,
                  todayHighlight: true,
                  format: 'dd.mm.yy',
                  startDate: new Date()
              }).on('show', function(e) {
                  $.ajax({
                      url: '/cabinowner/bookings/availability',
                      dataType: 'JSON',
                      type: 'POST'
                  })
                      .done(function( response ) {
                          $("#dateFrom").datepicker('setDatesDisabled', response.disableDates);
                      })
                      .fail(function(response, jqxhr, textStatus, error) {
                      });
              });
  
              $("#dateFrom").datepicker().on('changeMonth', function(e) {
                  $.ajax({
                      url: '/cabinowner/bookings/availability',
                      dataType: 'JSON',
                      type: 'POST',
                      data: { date : moment(e.date).format('YY-MM-DD') }
                  })
                      .done(function( response ) {
                          // here response is getting but next month is not showing
                          $("#dateFrom").datepicker('setDatesDisabled', response.disableDates);
                      })
                      .fail(function(response, jqxhr, textStatus, error) {
                      });
              });
  
              $("#dateFrom").datepicker().on('changeDate', function(e) {
                  var temp   = $(this).datepicker('getDate');
                  var start  = new Date(temp);
                  start.setDate(start.getDate() + 1); // Here date is setting greater than start date
  
                  var end    = new Date(start);
                  end.setDate(end.getDate() + 60);
  
                  $("#dateTo").datepicker({
                      autoclose: true,
                      format: 'dd.mm.yy',
                      startDate: start,
                      endDate: end
                  });
              });
  </code></pre>