bootstrap-datepicker-rails 1.6.0.pre.alpha → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4acd455f5b4675e2e6022e57cefb11d34c71a1b
4
- data.tar.gz: 06c3fcb8a7f24c4f236c78ec1afaf13131568f58
3
+ metadata.gz: 6700e2e61018b06e0cc7cef33d8ed164ae69fa40
4
+ data.tar.gz: 4393ce3ad66d38ce601b4566ceb67da1ca5b3a72
5
5
  SHA512:
6
- metadata.gz: bed03af6d4a6e3284a07c8a83d8a12bfc510e42f10dc860ae98376a1c59a1e248447fd6e6c77fac08ee64b208451492fa4e0fc166f43988aa467d97ddf20a443
7
- data.tar.gz: 03b8c534282d7c855c3359caa263722643a3150c8acb9848dc972e372870dd2606f12a16c2953af3692cfe99be01dd0f5f783646f631d40d309fdbc0b56afabc
6
+ metadata.gz: f4b43d870a8dc5d152a9adf57b90a4569342588a24134a02f723f95659516acee13653c14d12a34b1fda046402f524c1f729f1b752241b9822d62352e0e20438
7
+ data.tar.gz: d5231c8563882adcf141d8d3512cbf027220fd3077c1607ac64ae9acd94f6f5fb647060c98d2081d03de49a698f4c4a72c3a12b97df9cd9c447ca1f853a23ea0
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.6.0-alpha"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.6.0-alpha (https://github.com/eternicode/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.6.0 (https://github.com/eternicode/bootstrap-datepicker)
3
3
  *
4
4
  * Copyright 2012 Stefan Petre
5
5
  * Improvements by Andrew Rowls
@@ -1087,12 +1087,20 @@
1087
1087
  if (this.o.beforeShowMonth !== $.noop){
1088
1088
  var that = this;
1089
1089
  $.each(months, function(i, month){
1090
- if (!$(month).hasClass('disabled')) {
1091
- var moDate = new Date(year, i, 1);
1092
- var before = that.o.beforeShowMonth(moDate);
1093
- if (before === false)
1094
- $(month).addClass('disabled');
1095
- }
1090
+ var moDate = new Date(year, i, 1);
1091
+ var before = that.o.beforeShowMonth(moDate);
1092
+ if (before === undefined)
1093
+ before = {};
1094
+ else if (typeof(before) === 'boolean')
1095
+ before = {enabled: before};
1096
+ else if (typeof(before) === 'string')
1097
+ before = {classes: before};
1098
+ if (before.enabled === false && !$(month).hasClass('disabled'))
1099
+ $(month).addClass('disabled');
1100
+ if (before.classes)
1101
+ $(month).addClass(before.classes);
1102
+ if (before.tooltip)
1103
+ $(month).prop('title', before.tooltip);
1096
1104
  });
1097
1105
  }
1098
1106
 
@@ -2093,7 +2101,7 @@
2093
2101
 
2094
2102
  /* DATEPICKER VERSION
2095
2103
  * =================== */
2096
- $.fn.datepicker.version = '1.6.0-alpha';
2104
+ $.fn.datepicker.version = '1.6.0';
2097
2105
 
2098
2106
  /* DATEPICKER DATA-API
2099
2107
  * ================== */
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Australian English translation for bootstrap-datepicker
3
+ * Steve Chapman <steven.p.chapman@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['en-AU'] = {
7
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
8
+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
9
+ daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
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
+ monthsTitle: "Months",
14
+ clear: "Clear",
15
+ weekStart: 1,
16
+ format: "d/mm/yyyy"
17
+ };
18
+ }(jQuery));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.6.0-alpha (https://github.com/eternicode/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.6.0 (https://github.com/eternicode/bootstrap-datepicker)
3
3
  *
4
4
  * Copyright 2012 Stefan Petre
5
5
  * Improvements by Andrew Rowls
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Datepicker for Bootstrap v1.6.0-alpha (https://github.com/eternicode/bootstrap-datepicker)
2
+ * Datepicker for Bootstrap v1.6.0 (https://github.com/eternicode/bootstrap-datepicker)
3
3
  *
4
4
  * Copyright 2012 Stefan Petre
5
5
  * Improvements by Andrew Rowls
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.6.0.pre.alpha
4
+ version: 1.6.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: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -108,6 +108,7 @@ files:
108
108
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js
109
109
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js
110
110
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.el.js
111
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-AU.js
111
112
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js
112
113
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.eo.js
113
114
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js
@@ -181,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
182
  version: '0'
182
183
  required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  requirements:
184
- - - ">"
185
+ - - ">="
185
186
  - !ruby/object:Gem::Version
186
- version: 1.3.1
187
+ version: '0'
187
188
  requirements: []
188
189
  rubyforge_project:
189
190
  rubygems_version: 2.5.1