bootstrap-datepicker-rails 0.6.18 → 0.6.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. data/lib/bootstrap-datepicker-rails/version.rb +1 -1
  2. data/vendor/assets/javascripts/bootstrap-datepicker/core.js +64 -25
  3. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js +2 -1
  4. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js +2 -1
  5. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js +2 -1
  6. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js +2 -1
  7. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fi.js +2 -1
  8. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr.js +2 -1
  9. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.is.js +2 -1
  10. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it.js +2 -1
  11. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.lv.js +1 -0
  12. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js +1 -0
  13. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js +2 -1
  14. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js +2 -1
  15. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pl.js +2 -1
  16. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pt-BR.js +14 -0
  17. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ru.js +2 -1
  18. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js +2 -1
  19. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js +2 -1
  20. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js +2 -1
  21. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +2 -1
  22. data/vendor/assets/stylesheets/bootstrap-datepicker.css +53 -2
  23. metadata +5 -4
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "0.6.18"
3
+ VERSION = "0.6.19"
4
4
  end
5
5
  end
@@ -23,6 +23,10 @@
23
23
  function UTCDate(){
24
24
  return new Date(Date.UTC.apply(Date, arguments));
25
25
  }
26
+ function UTCToday(){
27
+ var today = new Date();
28
+ return UTCDate(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate());
29
+ }
26
30
 
27
31
  // Picker object
28
32
 
@@ -102,6 +106,9 @@
102
106
  break;
103
107
  }
104
108
 
109
+ this.todayBtn = (options.todayBtn||this.element.data('date-today-btn')||false);
110
+ this.todayHighlight = (options.todayHighlight||this.element.data('date-today-highlight')||false);
111
+
105
112
  this.weekStart = ((options.weekStart||this.element.data('date-weekstart')||dates[this.language].weekStart||0) % 7);
106
113
  this.weekEnd = ((this.weekStart + 6) % 7);
107
114
  this.startDate = -Infinity;
@@ -233,9 +240,13 @@
233
240
  startMonth = this.startDate !== -Infinity ? this.startDate.getUTCMonth() : -Infinity,
234
241
  endYear = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity,
235
242
  endMonth = this.endDate !== Infinity ? this.endDate.getUTCMonth() : Infinity,
236
- currentDate = this.date.valueOf();
237
- this.picker.find('.datepicker-days th:eq(1)')
243
+ currentDate = this.date.valueOf(),
244
+ today = new Date();
245
+ this.picker.find('.datepicker-days thead th:eq(1)')
238
246
  .text(dates[this.language].months[month]+' '+year);
247
+ this.picker.find('tfoot th.today')
248
+ .text(dates[this.language].today)
249
+ .toggle(this.todayBtn);
239
250
  this.updateNavArrows();
240
251
  this.fillMonths();
241
252
  var prevMonth = UTCDate(year, month-1, 28,0,0,0,0),
@@ -257,6 +268,13 @@
257
268
  } else if (prevMonth.getUTCFullYear() > year || (prevMonth.getUTCFullYear() == year && prevMonth.getUTCMonth() > month)) {
258
269
  clsName += ' new';
259
270
  }
271
+ // Compare internal UTC date with local today, not UTC today
272
+ if (this.todayHighlight &&
273
+ prevMonth.getUTCFullYear() == today.getFullYear() &&
274
+ prevMonth.getUTCMonth() == today.getMonth() &&
275
+ prevMonth.getUTCDate() == today.getDate()) {
276
+ clsName += ' today';
277
+ }
260
278
  if (prevMonth.valueOf() == currentDate) {
261
279
  clsName += ' active';
262
280
  }
@@ -363,6 +381,17 @@
363
381
  }
364
382
  this.fill();
365
383
  break;
384
+ case 'today':
385
+ var date = new Date();
386
+ date.setUTCHours(0);
387
+ date.setUTCMinutes(0);
388
+ date.setUTCSeconds(0);
389
+ date.setUTCMilliseconds(0);
390
+
391
+ this.showMode(-2);
392
+ var which = this.todayBtn == 'linked' ? null : 'view';
393
+ this._setDate(date, which);
394
+ break;
366
395
  }
367
396
  break;
368
397
  case 'span':
@@ -407,32 +436,38 @@
407
436
  month += 1;
408
437
  }
409
438
  }
410
- this.date = UTCDate(year, month, day,0,0,0,0);
411
- this.viewDate = UTCDate(year, month, day,0,0,0,0);
412
- this.fill();
413
- this.setValue();
414
- this.element.trigger({
415
- type: 'changeDate',
416
- date: this.date
417
- });
418
- var element;
419
- if (this.isInput) {
420
- element = this.element;
421
- } else if (this.component){
422
- element = this.element.find('input');
423
- }
424
- if (element) {
425
- element.change();
426
- if (this.autoclose) {
427
- this.hide();
428
- }
429
- }
439
+ this._setDate(UTCDate(year, month, day,0,0,0,0));
430
440
  }
431
441
  break;
432
442
  }
433
443
  }
434
444
  },
435
445
 
446
+ _setDate: function(date, which){
447
+ if (!which || which == 'date')
448
+ this.date = date;
449
+ if (!which || which == 'view')
450
+ this.viewDate = date;
451
+ this.fill();
452
+ this.setValue();
453
+ this.element.trigger({
454
+ type: 'changeDate',
455
+ date: this.date
456
+ });
457
+ var element;
458
+ if (this.isInput) {
459
+ element = this.element;
460
+ } else if (this.component){
461
+ element = this.element.find('input');
462
+ }
463
+ if (element) {
464
+ element.change();
465
+ if (this.autoclose) {
466
+ this.hide();
467
+ }
468
+ }
469
+ },
470
+
436
471
  moveMonth: function(date, dir){
437
472
  if (!dir) return date;
438
473
  var new_date = new Date(date.valueOf()),
@@ -604,7 +639,8 @@
604
639
  daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
605
640
  daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
606
641
  months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
607
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
642
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
643
+ today: "Today"
608
644
  }
609
645
  }
610
646
 
@@ -753,27 +789,30 @@
753
789
  '<th class="next"><i class="icon-arrow-right"/></th>'+
754
790
  '</tr>'+
755
791
  '</thead>',
756
- contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>'
792
+ contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
793
+ footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr></tfoot>'
757
794
  };
758
795
  DPGlobal.template = '<div class="datepicker dropdown-menu">'+
759
796
  '<div class="datepicker-days">'+
760
797
  '<table class=" table-condensed">'+
761
798
  DPGlobal.headTemplate+
762
799
  '<tbody></tbody>'+
800
+ DPGlobal.footTemplate+
763
801
  '</table>'+
764
802
  '</div>'+
765
803
  '<div class="datepicker-months">'+
766
804
  '<table class="table-condensed">'+
767
805
  DPGlobal.headTemplate+
768
806
  DPGlobal.contTemplate+
807
+ DPGlobal.footTemplate+
769
808
  '</table>'+
770
809
  '</div>'+
771
810
  '<div class="datepicker-years">'+
772
811
  '<table class="table-condensed">'+
773
812
  DPGlobal.headTemplate+
774
813
  DPGlobal.contTemplate+
814
+ DPGlobal.footTemplate+
775
815
  '</table>'+
776
816
  '</div>'+
777
817
  '</div>';
778
-
779
818
  }( window.jQuery );
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So", "Ne"],
9
9
  daysMin: ["N", "P", "Ú", "St", "Č", "P", "So", "N"],
10
10
  months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
11
- monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"]
11
+ monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"],
12
+ today: "Dnes"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"],
9
9
  daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø", "Sø"],
10
10
  months: ["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"]
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
+ today: "I Dag"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
9
9
  daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
10
10
  months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
11
- monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
11
+ monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
12
+ today: "Heute"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
9
9
  daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
10
10
  months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
11
- monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"]
11
+ monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
12
+ today: "Hoy"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau", "sun"],
9
9
  daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la", "su"],
10
10
  months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
11
- monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"]
11
+ monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"],
12
+ today: "tänään"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
9
9
  daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
10
10
  months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
11
- monthsShort: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec"]
11
+ monthsShort: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec"],
12
+ today: "Aujourd'hui"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau", "Sun"],
9
9
  daysMin: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La", "Su"],
10
10
  months: ["Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maí", "Jún", "Júl", "Ágú", "Sep", "Okt", "Nóv", "Des"]
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maí", "Jún", "Júl", "Ágú", "Sep", "Okt", "Nóv", "Des"],
12
+ today: "Í Dag"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Dom"],
9
9
  daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"],
10
10
  months: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
11
- monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"]
11
+ monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
12
+ today: "Oggi"
12
13
  };
13
14
  }(jQuery));
@@ -10,6 +10,7 @@
10
10
  daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
11
11
  months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
12
12
  monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
13
+ today: "Šodien",
13
14
  weekStart: 1
14
15
  };
15
16
  }(jQuery));
@@ -9,5 +9,6 @@
9
9
  daysMin: ["Ah", "Is", "Se", "Ra", "Kh", "Ju", "Sa", "Ah"],
10
10
  months: ["Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember"],
11
11
  monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]
12
+ today: "Hari Ini"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"],
9
9
  daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø", "Sø"],
10
10
  months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"]
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
12
+ today: "I Dag"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zo"],
9
9
  daysMin: ["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za", "Zo"],
10
10
  months: ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"],
11
- monthsShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"]
11
+ monthsShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
+ today: "Vandaag"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Nie", "Pn", "Wt", "Śr", "Czw", "Pt", "So", "Nie"],
9
9
  daysMin: ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"],
10
10
  months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
11
- monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"]
11
+ monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"],
12
+ today: "Dzisiaj"
12
13
  };
13
14
  }(jQuery));
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Brazilian translation for bootstrap-datepicker
3
+ * Cauan Cabral <cauan@radig.com.br>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['pt-BR'] = {
7
+ days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado", "Domingo"],
8
+ daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb", "Dom"],
9
+ daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa", "Do"],
10
+ months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
11
+ monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
12
+ today: "Hoje"
13
+ };
14
+ }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Вск"],
9
9
  daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"],
10
10
  months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
11
- monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"]
11
+ monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"],
12
+ today: "Сегодня"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", "Sön"],
9
9
  daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö", "Sö"],
10
10
  months: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"],
11
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"]
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
+ today: "I Dag"
12
13
  };
13
14
  }(jQuery));
@@ -8,6 +8,7 @@
8
8
  daysShort: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
9
9
  daysMin: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
10
10
  months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
11
- monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."]
11
+ monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
12
+ today: "วันนี้"
12
13
  };
13
14
  }(jQuery));
@@ -8,7 +8,8 @@
8
8
  daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts", "Pz"],
9
9
  daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct", "Pz"],
10
10
  months: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
11
- monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"]
11
+ monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
12
+ today: "Bugün"
12
13
  };
13
14
  }(jQuery));
14
15
 
@@ -8,6 +8,7 @@
8
8
  daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
9
9
  daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
10
10
  months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
11
- monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
11
+ monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
12
+ today: "今日"
12
13
  };
13
14
  }(jQuery));
@@ -79,6 +79,55 @@
79
79
  color: #999999;
80
80
  cursor: default;
81
81
  }
82
+ .datepicker td.today,
83
+ .datepicker td.today:hover,
84
+ .datepicker td.today.disabled,
85
+ .datepicker td.today.disabled:hover {
86
+ background-color: #fde19a;
87
+ background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
88
+ background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
89
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
90
+ background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
91
+ background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
92
+ background-image: linear-gradient(top, #fdd49a, #fdf59a);
93
+ background-repeat: repeat-x;
94
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
95
+ border-color: #fdf59a #fdf59a #fbed50;
96
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
97
+ filter: progid:dximagetransform.microsoft.gradient(enabled=false);
98
+ }
99
+ .datepicker td.today:hover,
100
+ .datepicker td.today:hover:hover,
101
+ .datepicker td.today.disabled:hover,
102
+ .datepicker td.today.disabled:hover:hover,
103
+ .datepicker td.today:active,
104
+ .datepicker td.today:hover:active,
105
+ .datepicker td.today.disabled:active,
106
+ .datepicker td.today.disabled:hover:active,
107
+ .datepicker td.today.active,
108
+ .datepicker td.today:hover.active,
109
+ .datepicker td.today.disabled.active,
110
+ .datepicker td.today.disabled:hover.active,
111
+ .datepicker td.today.disabled,
112
+ .datepicker td.today:hover.disabled,
113
+ .datepicker td.today.disabled.disabled,
114
+ .datepicker td.today.disabled:hover.disabled,
115
+ .datepicker td.today[disabled],
116
+ .datepicker td.today:hover[disabled],
117
+ .datepicker td.today.disabled[disabled],
118
+ .datepicker td.today.disabled:hover[disabled] {
119
+ background-color: #fdf59a;
120
+ }
121
+ .datepicker td.today:active,
122
+ .datepicker td.today:hover:active,
123
+ .datepicker td.today.disabled:active,
124
+ .datepicker td.today.disabled:hover:active,
125
+ .datepicker td.today.active,
126
+ .datepicker td.today:hover.active,
127
+ .datepicker td.today.disabled.active,
128
+ .datepicker td.today.disabled:hover.active {
129
+ background-color: #fbf069 \9;
130
+ }
82
131
  .datepicker td.active,
83
132
  .datepicker td.active:hover,
84
133
  .datepicker td.active.disabled,
@@ -208,10 +257,12 @@
208
257
  .datepicker th.switch {
209
258
  width: 145px;
210
259
  }
211
- .datepicker thead tr:first-child th {
260
+ .datepicker thead tr:first-child th,
261
+ .datepicker tfoot tr:first-child th {
212
262
  cursor: pointer;
213
263
  }
214
- .datepicker thead tr:first-child th:hover {
264
+ .datepicker thead tr:first-child th:hover,
265
+ .datepicker tfoot tr:first-child th:hover {
215
266
  background: #eeeeee;
216
267
  }
217
268
  .input-append.date .add-on i,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-datepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.18
4
+ version: 0.6.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-24 00:00:00.000000000 Z
12
+ date: 2012-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -96,6 +96,7 @@ files:
96
96
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js
97
97
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js
98
98
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pl.js
99
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pt-BR.js
99
100
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pt.js
100
101
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ru.js
101
102
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js
@@ -118,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
119
  version: '0'
119
120
  segments:
120
121
  - 0
121
- hash: -2750079544658003183
122
+ hash: -613125112782234679
122
123
  required_rubygems_version: !ruby/object:Gem::Requirement
123
124
  none: false
124
125
  requirements:
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  version: '0'
128
129
  segments:
129
130
  - 0
130
- hash: -2750079544658003183
131
+ hash: -613125112782234679
131
132
  requirements: []
132
133
  rubyforge_project:
133
134
  rubygems_version: 1.8.24