bootstrap-datepicker-rails 0.6.28 → 0.6.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -1,13 +1,22 @@
1
1
  #!/usr/bin/env rake
2
2
 
3
3
  desc "Update assets"
4
- task 'update' do
4
+ task :update do
5
5
  system("rm -rf bootstrap-datepicker-src")
6
6
  system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
7
7
  system("cp bootstrap-datepicker-src/css/datepicker.css vendor/assets/stylesheets/bootstrap-datepicker.css")
8
8
  system("cp bootstrap-datepicker-src/js/bootstrap-datepicker.js vendor/assets/javascripts/bootstrap-datepicker/core.js")
9
9
  system("cp -R bootstrap-datepicker-src/js/locales/ vendor/assets/javascripts/bootstrap-datepicker/locales/")
10
- system("git status")
10
+ fixes
11
+ system("git status")
12
+ end
13
+
14
+ def fixes
15
+ puts "hello"
16
+ core_file = File.read("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js")
17
+ string = 'monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]'
18
+ modified_file = core_file.gsub(string, string + ',')
19
+ File.open("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js", "w") { |file| file.puts modified_file }
11
20
  end
12
21
 
13
22
  desc "Build and publish de gem"
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "0.6.28"
3
+ VERSION = "0.6.29"
4
4
  end
5
5
  end
@@ -148,7 +148,9 @@
148
148
  if (!this.isInput) {
149
149
  $(document).off('mousedown', this.hide);
150
150
  }
151
- if (e && e.currentTarget.value)
151
+
152
+ if (this.isInput && this.element.val() ||
153
+ this.hasInput && this.element.find('input').val())
152
154
  this.setValue();
153
155
  this.element.trigger({
154
156
  type: 'hide',
@@ -8,7 +8,7 @@
8
8
  daysShort: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab", "Aha"],
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
- monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"],
12
12
  today: "Hari Ini"
13
13
  };
14
14
  }(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.28
4
+ version: 0.6.29
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-11-18 00:00:00.000000000 Z
12
+ date: 2012-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 693739899130698621
124
+ hash: 916469626407533721
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  none: false
127
127
  requirements:
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: 693739899130698621
133
+ hash: 916469626407533721
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 1.8.24