bootstrap-datepicker-rails 0.6.41 → 0.6.42

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,8 +2,12 @@
2
2
 
3
3
  desc "Update assets"
4
4
  task :update do
5
- system("rm -rf bootstrap-datepicker-src")
6
- system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
5
+
6
+ if Dir.exist?('bootstrap-datepicker-src')
7
+ system("cd bootstrap-datepicker-src && git pull && cd ..")
8
+ else
9
+ system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
10
+ end
7
11
  system("cp bootstrap-datepicker-src/css/datepicker.css vendor/assets/stylesheets/bootstrap-datepicker.css")
8
12
  system("cp bootstrap-datepicker-src/js/bootstrap-datepicker.js vendor/assets/javascripts/bootstrap-datepicker/core.js")
9
13
  system("cp -R bootstrap-datepicker-src/js/locales/ vendor/assets/javascripts/bootstrap-datepicker/locales/")
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "0.6.41"
3
+ VERSION = "0.6.42"
4
4
  end
5
5
  end
@@ -254,6 +254,9 @@
254
254
  this._detachEvents();
255
255
  this.picker.remove();
256
256
  delete this.element.data().datepicker;
257
+ if (!this.isInput) {
258
+ delete this.element.data().date;
259
+ }
257
260
  },
258
261
 
259
262
  getDate: function() {
@@ -327,7 +330,7 @@
327
330
  var zIndex = parseInt(this.element.parents().filter(function() {
328
331
  return $(this).css('z-index') != 'auto';
329
332
  }).first().css('z-index'))+10;
330
- var offset = this.component ? this.component.offset() : this.element.offset();
333
+ var offset = this.component ? this.component.parent().offset() : this.element.offset();
331
334
  var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(true);
332
335
  this.picker.css({
333
336
  top: offset.top + height,
@@ -8,6 +8,8 @@
8
8
  daysShort: ["日", "月", "火", "水", "木", "金", "土", "日"],
9
9
  daysMin: ["日", "月", "火", "水", "木", "金", "土", "日"],
10
10
  months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
11
- monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
11
+ monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
12
+ today: "今日",
13
+ format: "yyyy/mm/dd"
12
14
  };
13
15
  }(jQuery));
@@ -9,7 +9,6 @@
9
9
  */
10
10
  .datepicker {
11
11
  padding: 4px;
12
- margin-top: 1px;
13
12
  -webkit-border-radius: 4px;
14
13
  -moz-border-radius: 4px;
15
14
  border-radius: 4px;
@@ -112,6 +111,7 @@
112
111
  border-color: #fdf59a #fdf59a #fbed50;
113
112
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
114
113
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
114
+ color: #000 !important;
115
115
  }
116
116
  .datepicker table tr td.today:hover,
117
117
  .datepicker table tr td.today:hover:hover,
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.41
4
+ version: 0.6.42
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-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: -3334904741585091429
189
+ hash: 2184944113623658522
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  none: false
192
192
  requirements:
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  segments:
197
197
  - 0
198
- hash: -3334904741585091429
198
+ hash: 2184944113623658522
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 1.8.24