Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a7e04778

Přidáno uživatelem Martin Sebela před asi 4 roky(ů)

Re #8079 - AJAX a CSS datepicker bugfix

Zobrazit rozdíly:

website/public/js/zcu-heatmap.js
305 305
    success: function(result) {
306 306
      availableDates = String(result).split(',');
307 307
    }
308
  });
309
  
310
  $('#date').datepicker({
311
    format: 'yyyy-mm-dd',
312
    language: 'cs',
313
    beforeShowDay: function(date) {
314
      if (availableDates.indexOf(formatDate(date)) < 0) {
315
        return {enabled: false, tooltip: 'Žádná data'}
316
      }
317
      else {
318
        return {enabled: true}
319
      }
320
    },
321
    autoclose: true
308
  }).then(function () {
309
    $('#date').datepicker({
310
      format: 'yyyy-mm-dd',
311
      language: 'cs',
312
      beforeShowDay: function(date) {
313
        if (availableDates.indexOf(formatDate(date)) < 0) {
314
          return {enabled: false, tooltip: 'Žádná data'}
315
        }
316
        else {
317
          return {enabled: true}
318
        }
319
      },
320
      autoclose: true
321
    });
322 322
  });
323 323
}

Také k dispozici: Unified diff