bootstrap-datepicker-rails 1.3.0.2 → 1.3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -5
  3. data/Rakefile +1 -1
  4. data/lib/bootstrap-datepicker-rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/bootstrap-datepicker/core.js +17 -7
  6. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bs.js +15 -0
  7. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ca.js +4 -1
  8. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js +4 -1
  9. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.el.js +4 -1
  10. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js +17 -0
  11. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js +4 -1
  12. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.eu.js +15 -0
  13. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fo.js +15 -0
  14. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr-CH.js +20 -0
  15. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.gl.js +3 -1
  16. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hy.js +17 -0
  17. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it-CH.js +20 -0
  18. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ja.js +2 -1
  19. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kh.js +15 -0
  20. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js +4 -1
  21. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pl.js +2 -1
  22. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.rs-latin.js +3 -1
  23. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.rs.js +3 -1
  24. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ru.js +2 -0
  25. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sq.js +1 -1
  26. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr-latin.js +16 -0
  27. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr.js +16 -0
  28. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js +2 -1
  29. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js +5 -4
  30. data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +2 -1
  31. data/vendor/assets/stylesheets/bootstrap-datepicker.css +3 -5
  32. data/vendor/assets/stylesheets/bootstrap-datepicker3.css +6 -10
  33. metadata +13 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca2a58bb008264e406ccae9243de173873d766e7
4
- data.tar.gz: 6b61c8b45a7b48cf0fcf5e7d135b0eb723ff88c6
3
+ metadata.gz: 24eab8069436cc1a2441234a40b25b503fd91cc5
4
+ data.tar.gz: 07327f13383ad95b0ebfd94a1d1e19a57b96eb3b
5
5
  SHA512:
6
- metadata.gz: 0aa5b67a3105dd79f4bcced5aadadff478be66e9685278f8911a535f5ffaf9aa50cace9f36607a2b358dc230fd0eaf976fae267010f776ec79c43a3a2f65a3cd
7
- data.tar.gz: 3423b5332033ab5b80907c14fb651e0009effe303f1b7702b0193bc077afdd60a2a95524b078b8f3c077274582f460c319cda5c1af4f6a365685e69cb7539a7a
6
+ metadata.gz: 1b73fb9f35384549a050530b16628a1416bf52b8bed005ac0bce6addd8c68323a8f4501ef5642d1aaa80f407b71e96d57f1d374d7a9f1bfaef8994d29835770c
7
+ data.tar.gz: 0ac564dd9930c70c3a82678084c1948ed3c7d79db28dd68eec3ef8794a3bce7df80d2334f1b55532694651683e1b7936f9cb1bffbc8a06eb2ac252bbddfdfa39
data/README.md CHANGED
@@ -52,15 +52,21 @@ You can fine tune the included files to suit your needs.
52
52
 
53
53
  ## Using bootstrap-datepicker-rails
54
54
 
55
- Just call datepicker() with any selector.
55
+ Just use the simple ```data-provide='datepicker'``` attribute.
56
56
 
57
57
  ```html
58
- <input type="text" data-behaviour='datepicker' >
58
+ <input type="text" data-provide='datepicker' >
59
+ ```
60
+
61
+ Or call datepicker() with any selector.
62
+
63
+ ```html
64
+ <input type="text" class='datepicker' >
59
65
 
60
66
  <script type="text/javascript">
61
67
  $(document).ready(function(){
62
- $('[data-behaviour~=datepicker]').datepicker();
63
- })
68
+ $('.datepicker').datepicker();
69
+ });
64
70
  </script>
65
71
  ```
66
72
 
@@ -75,7 +81,7 @@ There are a lot of options you can pass to datepicker(). They are documented at
75
81
  Use Github Issues.
76
82
 
77
83
  ## License
78
- Copyright (c) 2012-2013 Gonzalo Rodríguez-Baltanás Díaz
84
+ Copyright (c) 2014 Gonzalo Rodríguez-Baltanás Díaz
79
85
 
80
86
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
81
87
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
 
3
3
  require 'json'
4
+ require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
4
5
 
5
6
  desc "Update assets"
6
7
  task :update do
@@ -28,7 +29,6 @@ end
28
29
 
29
30
  desc "Build and publish the gem"
30
31
  task :publish => :build do
31
- require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
32
32
  tags = `git tag`.split
33
33
  current_version = BootstrapDatepickerRails::Rails::VERSION
34
34
  system("git tag -a #{current_version} -m 'Release #{current_version}'") unless tags.include?(current_version)
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.3.0.2"
3
+ VERSION = "1.3.1.0"
4
4
  end
5
5
  end
@@ -63,7 +63,7 @@
63
63
  this.push.apply(this, new_array);
64
64
  },
65
65
  clear: function(){
66
- this.splice(0);
66
+ this.length = 0;
67
67
  },
68
68
  copy: function(){
69
69
  var a = new DateArray();
@@ -116,7 +116,7 @@
116
116
  this.viewMode = this.o.startView;
117
117
 
118
118
  if (this.o.calendarWeeks)
119
- this.picker.find('tfoot th.today')
119
+ this.picker.find('tfoot th.today, tfoot th.clear')
120
120
  .attr('colspan', function(i, val){
121
121
  return parseInt(val) + 1;
122
122
  });
@@ -547,9 +547,12 @@
547
547
  windowHeight = $window.height(),
548
548
  scrollTop = $window.scrollTop();
549
549
 
550
- var zIndex = parseInt(this.element.parents().filter(function(){
551
- return $(this).css('z-index') !== 'auto';
552
- }).first().css('z-index'))+10;
550
+ var parentsZindex = [];
551
+ this.element.parents().each(function() {
552
+ var itemZIndex = $(this).css('z-index');
553
+ if ( itemZIndex !== 'auto' && itemZIndex !== 0 ) parentsZindex.push( parseInt( itemZIndex ) );
554
+ });
555
+ var zIndex = Math.max.apply( Math, parentsZindex ) + 10;
553
556
  var offset = this.component ? this.component.parent().offset() : this.element.offset();
554
557
  var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false);
555
558
  var width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false);
@@ -745,6 +748,7 @@
745
748
  todaytxt = dates[this.o.language].today || dates['en'].today || '',
746
749
  cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
747
750
  tooltip;
751
+ if (isNaN(year) || isNaN(month)) return;
748
752
  this.picker.find('.datepicker-days thead th.datepicker-switch')
749
753
  .text(dates[this.o.language].months[month]+' '+year);
750
754
  this.picker.find('tfoot th.today')
@@ -804,6 +808,7 @@
804
808
 
805
809
  clsName = $.unique(clsName);
806
810
  html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');
811
+ tooltip = null;
807
812
  if (prevMonth.getUTCDay() === this.o.weekEnd){
808
813
  html.push('</tr>');
809
814
  }
@@ -1017,6 +1022,9 @@
1017
1022
  if (!date){
1018
1023
  this.dates.clear();
1019
1024
  }
1025
+ if (this.o.multidate === 1 && ix === 0){
1026
+ // single datepicker, don't remove selected date
1027
+ }
1020
1028
  else if (ix !== -1){
1021
1029
  this.dates.remove(ix);
1022
1030
  }
@@ -1192,8 +1200,10 @@
1192
1200
  break;
1193
1201
  case 13: // enter
1194
1202
  focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;
1195
- this._toggle_multidate(focusDate);
1196
- dateChanged = true;
1203
+ if (this.o.keyboardNavigation) {
1204
+ this._toggle_multidate(focusDate);
1205
+ dateChanged = true;
1206
+ }
1197
1207
  this.focusDate = null;
1198
1208
  this.viewDate = this.dates.get(-1) || this.viewDate;
1199
1209
  this.setValue();
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Bosnian translation for bootstrap-datepicker
3
+ */
4
+ ;(function($){
5
+ $.fn.datepicker.dates['bs'] = {
6
+ days: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota", "Nedjelja"],
7
+ daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub", "Ned"],
8
+ daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su", "N"],
9
+ months: ["Januar", "Februar", "Mart", "April", "Maj", "Juni", "Juli", "August", "Septembar", "Oktobar", "Novembar", "Decembar"],
10
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
11
+ today: "Danas",
12
+ weekStart: 1,
13
+ format: "dd.mm.yyyy"
14
+ };
15
+ }(jQuery));
@@ -9,6 +9,9 @@
9
9
  daysMin: ["dg", "dl", "dt", "dc", "dj", "dv", "ds", "dg"],
10
10
  months: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"],
11
11
  monthsShort: ["Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Oct", "Nov", "Des"],
12
- today: "Avui"
12
+ today: "Avui",
13
+ clear: "Esborrar",
14
+ weekStart: 1,
15
+ format: "dd/mm/yyyy"
13
16
  };
14
17
  }(jQuery));
@@ -10,6 +10,9 @@
10
10
  daysMin: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So", "Ne"],
11
11
  months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
12
12
  monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"],
13
- today: "Dnes"
13
+ today: "Dnes",
14
+ clear: "Vymazat",
15
+ weekStart: 1,
16
+ format: "d.m.yyyy"
14
17
  };
15
18
  }(jQuery));
@@ -8,6 +8,9 @@
8
8
  daysMin: ["Κυ", "Δε", "Τρ", "Τε", "Πε", "Πα", "Σα", "Κυ"],
9
9
  months: ["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"],
10
10
  monthsShort: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μάι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"],
11
- today: "Σήμερα"
11
+ today: "Σήμερα",
12
+ clear: "Καθαρισμός",
13
+ weekStart: 1,
14
+ format: "d/m/yyyy"
12
15
  };
13
16
  }(jQuery));
@@ -0,0 +1,17 @@
1
+ /**
2
+ * British English translation for bootstrap-datepicker
3
+ * Xavier Dutreilh <xavier@dutreilh.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['en-GB'] = {
7
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
8
+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
9
+ daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
10
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
12
+ today: "Today",
13
+ clear: "Clear",
14
+ weekStart: 1,
15
+ format: "dd/mm/yyyy"
16
+ };
17
+ }(jQuery));
@@ -9,6 +9,9 @@
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
11
  monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
12
- today: "Hoy"
12
+ today: "Hoy",
13
+ clear: "Borrar",
14
+ weekStart: 1,
15
+ format: "dd/mm/yyyy"
13
16
  };
14
17
  }(jQuery));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Basque translation for bootstrap-datepicker
3
+ * Arkaitz Etxeberria <kondi80@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['eu'] = {
7
+ days: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata','Igandea'],
8
+ daysShort: ['Ig','Al','Ar','Az','Og','Ol','Lr', 'Ig'],
9
+ daysMin: ['Ig','Al','Ar','Az','Og','Ol','Lr', 'Ig'],
10
+ months: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina','Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'],
11
+ monthsShort: ['Urt','Ots','Mar','Api','Mai','Eka','Uzt','Abu','Ira','Urr','Aza','Abe'],
12
+ today: "Gaur"
13
+ };
14
+ }(jQuery));
15
+
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Faroese translation for bootstrap-datepicker
3
+ * Theodor Johannesen <http://github.com/theodorjohannesen>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['fo'] = {
7
+ days: ["Sunnudagur", "Mánadagur", "Týsdagur", "Mikudagur", "Hósdagur", "Fríggjadagur", "Leygardagur", "Sunnudagur"],
8
+ daysShort: ["Sun", "Mán", "Týs", "Mik", "Hós", "Frí", "Ley", "Sun"],
9
+ daysMin: ["Su", "Má", "Tý", "Mi", "Hó", "Fr", "Le", "Su"],
10
+ months: ["Januar", "Februar", "Marts", "Apríl", "Mei", "Juni", "Juli", "August", "Septembur", "Oktobur", "Novembur", "Desembur"],
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
12
+ today: "Í Dag",
13
+ clear: "Reinsa"
14
+ };
15
+ }(jQuery));
@@ -0,0 +1,20 @@
1
+ /**
2
+ * French (Switzerland) translation for bootstrap-datepicker
3
+ * Christoph Jossi <c.jossi@ascami.ch>
4
+ * Based on
5
+ * French translation for bootstrap-datepicker
6
+ * Nico Mollet <nico.mollet@gmail.com>
7
+ */
8
+ ;(function($){
9
+ $.fn.datepicker.dates['fr'] = {
10
+ days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
11
+ daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
12
+ daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
13
+ months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
14
+ monthsShort: ["Jan", "Fév", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Déc"],
15
+ today: "Aujourd'hui",
16
+ clear: "Effacer",
17
+ weekStart: 1,
18
+ format: "dd.mm.yyyy"
19
+ };
20
+ }(jQuery));
@@ -6,6 +6,8 @@
6
6
  months: ["Xaneiro", "Febreiro", "Marzo", "Abril", "Maio", "Xuño", "Xullo", "Agosto", "Setembro", "Outubro", "Novembro", "Decembro"],
7
7
  monthsShort: ["Xan", "Feb", "Mar", "Abr", "Mai", "Xun", "Xul", "Ago", "Sep", "Out", "Nov", "Dec"],
8
8
  today: "Hoxe",
9
- clear: "Limpar"
9
+ clear: "Limpar",
10
+ weekStart: 1,
11
+ format: "dd/mm/yyyy"
10
12
  };
11
13
  }(jQuery));
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Armenian translation for bootstrap-datepicker
3
+ * Hayk Chamyan <hamshen@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['hy'] = {
7
+ days: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ", "Կիրակի"],
8
+ daysShort: ["Կիր", "Երկ", "Երք", "Չոր", "Հնգ", "Ուր", "Շաբ", "Կիր"],
9
+ daysMin: ["Կի", "Եկ", "Եք", "Չո", "Հի", "Ու", "Շա", "Կի"],
10
+ months: ["Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր"],
11
+ monthsShort: ["Հնվ", "Փետ", "Մար", "Ապր", "Մայ", "Հուն", "Հուլ", "Օգս", "Սեպ", "Հոկ", "Նոյ", "Դեկ"],
12
+ today: "Այսօր",
13
+ clear: "Ջնջել",
14
+ format: "dd.mm.yyyy",
15
+ weekStart: 1
16
+ };
17
+ }(jQuery));
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Italian (Switzerland) translation for bootstrap-datepicker
3
+ * Christoph Jossi <c.jossi@ascami.ch>
4
+ * Based on
5
+ * Italian translation for bootstrap-datepicker
6
+ * Enrico Rubboli <rubboli@gmail.com>
7
+ */
8
+ ;(function($){
9
+ $.fn.datepicker.dates['it'] = {
10
+ days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"],
11
+ daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Dom"],
12
+ daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"],
13
+ months: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
14
+ monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
15
+ today: "Oggi",
16
+ clear: "Cancella",
17
+ weekStart: 1,
18
+ format: "dd.mm.yyyy"
19
+ };
20
+ }(jQuery));
@@ -10,6 +10,7 @@
10
10
  months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
11
11
  monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
12
12
  today: "今日",
13
- format: "yyyy/mm/dd"
13
+ format: "yyyy/mm/dd",
14
+ clear: "クリア"
14
15
  };
15
16
  }(jQuery));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Cambodia (Khmer) translation for bootstrap-datepicker
3
+ * Lytay TOUCH <lytaytouch@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['en'] = {
7
+ days: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍", "អាទិត្យ"],
8
+ daysShort: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អារ.ទិ"],
9
+ daysMin: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អារ.ទិ"],
10
+ months: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
11
+ monthsShort: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
12
+ today: "ថ្ងៃនេះ",
13
+ clear: "សំអាត"
14
+ };
15
+ }(jQuery));
@@ -9,6 +9,9 @@
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
11
  monthsShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
- today: "Vandaag"
12
+ today: "Vandaag",
13
+ clear: "Wissen",
14
+ weekStart: 1,
15
+ format: "dd-mm-yyyy"
13
16
  };
14
17
  }(jQuery));
@@ -10,6 +10,7 @@
10
10
  months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
11
11
  monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"],
12
12
  today: "Dzisiaj",
13
- weekStart: 1
13
+ weekStart: 1,
14
+ clear: "Wyczyść"
14
15
  };
15
16
  }(jQuery));
@@ -9,6 +9,8 @@
9
9
  daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su", "N"],
10
10
  months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
11
11
  monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
12
- today: "Danas"
12
+ today: "Danas",
13
+ weekStart: 1,
14
+ format: "dd.mm.yyyy"
13
15
  };
14
16
  }(jQuery));
@@ -9,6 +9,8 @@
9
9
  daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су", "Н"],
10
10
  months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
11
11
  monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
12
- today: "Данас"
12
+ today: "Данас",
13
+ weekStart: 1,
14
+ format: "dd.mm.yyyy"
13
15
  };
14
16
  }(jQuery));
@@ -10,6 +10,8 @@
10
10
  months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
11
11
  monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"],
12
12
  today: "Сегодня",
13
+ clear: "Очистить",
14
+ format: "dd.mm.yyyy",
13
15
  weekStart: 1
14
16
  };
15
17
  }(jQuery));
@@ -4,7 +4,7 @@
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['sq'] = {
7
- days: ["E Diel", "E Hënë", "E martē", "E mërkurë", "E Enjte", "E Premte", "E Shtunë", "E Diel"],
7
+ days: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë", "E Diel"],
8
8
  daysShort: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu", "Die"],
9
9
  daysMin: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sht", "Di"],
10
10
  months: ["Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"],
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Serbian latin translation for bootstrap-datepicker
3
+ * Bojan Milosavlević <milboj@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['sr-latin'] = {
7
+ days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota", "Nedelja"],
8
+ daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", "Ned"],
9
+ daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su", "N"],
10
+ months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
12
+ today: "Danas",
13
+ weekStart: 1,
14
+ format: "dd.mm.yyyy"
15
+ };
16
+ }(jQuery));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Serbian cyrillic translation for bootstrap-datepicker
3
+ * Bojan Milosavlević <milboj@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['sr'] = {
7
+ days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота", "Недеља"],
8
+ daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб", "Нед"],
9
+ daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су", "Н"],
10
+ months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
11
+ monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
12
+ today: "Данас",
13
+ weekStart: 1,
14
+ format: "dd.mm.yyyy"
15
+ };
16
+ }(jQuery));
@@ -11,6 +11,7 @@
11
11
  monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
12
12
  today: "Idag",
13
13
  format: "yyyy-mm-dd",
14
- weekStart: 1
14
+ weekStart: 1,
15
+ clear: "Rensa"
15
16
  };
16
17
  }(jQuery));
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * Ukrainian translation for bootstrap-datepicker
3
- * Andrey Vityuk <andrey [dot] vityuk [at] gmail.com>
3
+ * Igor Polynets
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['uk'] = {
7
7
  days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота", "Неділя"],
8
8
  daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Нед"],
9
9
  daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Нд"],
10
- months: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
10
+ months: ["Cічень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
11
11
  monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
12
- today: "Сьогодні"
12
+ today: "Сьогодні",
13
+ weekStart: 1
13
14
  };
14
- }(jQuery));
15
+ }(jQuery));
@@ -11,6 +11,7 @@
11
11
  monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
12
12
  today: "今日",
13
13
  format: "yyyy年mm月dd日",
14
- weekStart: 1
14
+ weekStart: 1,
15
+ clear: "清空"
15
16
  };
16
17
  }(jQuery));
@@ -13,9 +13,6 @@
13
13
  -moz-border-radius: 4px;
14
14
  border-radius: 4px;
15
15
  direction: ltr;
16
- /*.dow {
17
- border-top: 1px solid #ddd !important;
18
- }*/
19
16
  }
20
17
  .datepicker-inline {
21
18
  width: 220px;
@@ -502,11 +499,12 @@
502
499
  *border-right-width: 2px;
503
500
  *border-bottom-width: 2px;
504
501
  color: #333333;
505
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
506
502
  font-size: 13px;
507
503
  line-height: 20px;
508
504
  }
509
505
  .datepicker.dropdown-menu th,
510
- .datepicker.dropdown-menu td {
506
+ .datepicker.datepicker-inline th,
507
+ .datepicker.dropdown-menu td,
508
+ .datepicker.datepicker-inline td {
511
509
  padding: 4px 5px;
512
510
  }
@@ -11,9 +11,6 @@
11
11
  padding: 4px;
12
12
  border-radius: 4px;
13
13
  direction: ltr;
14
- /*.dow {
15
- border-top: 1px solid #ddd !important;
16
- }*/
17
14
  }
18
15
  .datepicker-inline {
19
16
  width: 220px;
@@ -731,8 +728,6 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
731
728
  }
732
729
  .input-group.date .input-group-addon i {
733
730
  cursor: pointer;
734
- width: 16px;
735
- height: 16px;
736
731
  }
737
732
  .input-daterange input {
738
733
  text-align: center;
@@ -748,7 +743,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
748
743
  min-width: 16px;
749
744
  padding: 4px 5px;
750
745
  font-weight: normal;
751
- line-height: 1.428571429;
746
+ line-height: 1.42857143;
752
747
  text-align: center;
753
748
  text-shadow: 0 1px 0 #fff;
754
749
  vertical-align: middle;
@@ -780,11 +775,12 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
780
775
  *border-right-width: 2px;
781
776
  *border-bottom-width: 2px;
782
777
  color: #333333;
783
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
784
778
  font-size: 13px;
785
- line-height: 1.428571429;
779
+ line-height: 1.42857143;
786
780
  }
787
781
  .datepicker.dropdown-menu th,
788
- .datepicker.dropdown-menu td {
789
- padding: 4px 5px;
782
+ .datepicker.datepicker-inline th,
783
+ .datepicker.dropdown-menu td,
784
+ .datepicker.datepicker-inline td {
785
+ padding: 0px 5px;
790
786
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-datepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.2
4
+ version: 1.3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -101,26 +101,34 @@ files:
101
101
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar.js
102
102
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js
103
103
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js
104
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bs.js
104
105
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ca.js
105
106
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js
106
107
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cy.js
107
108
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js
108
109
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js
109
110
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.el.js
111
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js
110
112
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js
111
113
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.et.js
114
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.eu.js
112
115
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fa.js
113
116
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fi.js
117
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fo.js
118
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr-CH.js
114
119
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr.js
115
120
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.gl.js
116
121
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.he.js
117
122
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hr.js
118
123
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hu.js
124
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hy.js
119
125
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.id.js
120
126
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.is.js
127
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it-CH.js
121
128
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it.js
122
129
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ja.js
123
130
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ka.js
131
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kh.js
124
132
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kk.js
125
133
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kr.js
126
134
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.lt.js
@@ -141,6 +149,8 @@ files:
141
149
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sk.js
142
150
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sl.js
143
151
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sq.js
152
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr-latin.js
153
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr.js
144
154
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js
145
155
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sw.js
146
156
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js
@@ -172,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
182
  version: '0'
173
183
  requirements: []
174
184
  rubyforge_project:
175
- rubygems_version: 2.2.2
185
+ rubygems_version: 2.4.3
176
186
  signing_key:
177
187
  specification_version: 4
178
188
  summary: A date picker for Twitter Bootstrap