bootstrap-datepicker-rails 0.6.19 → 0.6.20

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.19"
3
+ VERSION = "0.6.20"
4
4
  end
5
5
  end
@@ -156,6 +156,24 @@
156
156
  });
157
157
  },
158
158
 
159
+ getDate: function() {
160
+ var d = this.getUTCDate();
161
+ return new Date(d.getTime() + (d.getTimezoneOffset()*60000))
162
+ },
163
+
164
+ getUTCDate: function() {
165
+ return this.date;
166
+ },
167
+
168
+ setDate: function(d) {
169
+ this.setUTCDate(new Date(d.getTime() - (d.getTimezoneOffset()*60000)));
170
+ },
171
+
172
+ setUTCDate: function(d) {
173
+ this.date = d;
174
+ this.setValue();
175
+ },
176
+
159
177
  setValue: function() {
160
178
  var formatted = DPGlobal.formatDate(this.date, this.format, this.language);
161
179
  if (!this.isInput) {
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Bulgarian translation for bootstrap-datepicker
3
+ * Apostol Apostolov <apostol.s.apostolov@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.datepicker.dates['bg'] = {
7
+ days: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота", "Неделя"],
8
+ daysShort: ["Нед", "Пон", "Вто", "Сря", "Чет", "Пет", "Съб", "Нед"],
9
+ daysMin: ["Н", "П", "В", "С", "Ч", "П", "С", "Н"],
10
+ months: ["Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"],
11
+ monthsShort: ["Ян", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Ное", "Дек"],
12
+ today: "днес"
13
+ };
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.19
4
+ version: 0.6.20
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-10-13 00:00:00.000000000 Z
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -78,6 +78,7 @@ files:
78
78
  - lib/bootstrap-datepicker-rails/version.rb
79
79
  - vendor/assets/javascripts/bootstrap-datepicker/core.js
80
80
  - vendor/assets/javascripts/bootstrap-datepicker/index.js
81
+ - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js
81
82
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.br.js
82
83
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js
83
84
  - vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js
@@ -119,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  segments:
121
122
  - 0
122
- hash: -613125112782234679
123
+ hash: 3766970909581379235
123
124
  required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  none: false
125
126
  requirements:
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  segments:
130
131
  - 0
131
- hash: -613125112782234679
132
+ hash: 3766970909581379235
132
133
  requirements: []
133
134
  rubyforge_project:
134
135
  rubygems_version: 1.8.24