bootstrap-datepicker-rails 0.6.37 → 0.6.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "0.6.37"
3
+ VERSION = "0.6.39"
4
4
  end
5
5
  end
@@ -3,6 +3,25 @@
3
3
 
4
4
  <input type="text" class='datepicker' >
5
5
 
6
+ <a href="#myModal" role="button" class="btn" data-toggle="modal">Datepicker in Modal</a>
7
+
8
+ <!-- Modal -->
9
+ <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
10
+ <div class="modal-header">
11
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
12
+ <h3 id="myModalLabel">Modal header</h3>
13
+ </div>
14
+ <div class="modal-body">
15
+ <input type="text" class='datepicker' >
16
+ </div>
17
+ <div class="modal-footer">
18
+ <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
19
+ <button class="btn btn-primary">Save changes</button>
20
+ </div>
21
+ </div>
22
+
6
23
  <script type="text/javascript">
7
24
  $('.datepicker').datepicker()
8
- </script>
25
+ </script>
26
+
27
+ <div style='margin-bottom:200%'></div>
@@ -35,6 +35,7 @@
35
35
 
36
36
  this.element = $(element);
37
37
  this.language = options.language||this.element.data('date-language')||"en";
38
+ this.language = this.language in dates ? this.language : this.language.split('-')[0]; //Check if "de-DE" style date is available, if not language should fallback to 2 letter code eg "de"
38
39
  this.language = this.language in dates ? this.language : "en";
39
40
  this.isRTL = dates[this.language].rtl||false;
40
41
  this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||dates[this.language].format||'mm/dd/yyyy');
@@ -10,6 +10,7 @@
10
10
  months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
11
11
  monthsShort: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Dec"],
12
12
  today: "Aujourd'hui",
13
- weekStart: 1
13
+ weekStart: 1,
14
+ format: "dd/mm/yyyy"
14
15
  };
15
16
  }(jQuery));
@@ -4,11 +4,13 @@
4
4
  */
5
5
  ;(function($){
6
6
  $.fn.datepicker.dates['it'] = {
7
- days: ["Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato", "Domenica"],
7
+ days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"],
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
11
  monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
12
- today: "Oggi"
12
+ today: "Oggi",
13
+ weekStart: 1,
14
+ format: "dd/mm/yyyy"
13
15
  };
14
16
  }(jQuery));
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.37
4
+ version: 0.6.39
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: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: 2034119127316735401
188
+ hash: 1169219055907779204
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  none: false
191
191
  requirements:
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: 2034119127316735401
197
+ hash: 1169219055907779204
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 1.8.24