bootstrap-datepicker-rails 0.6.33 → 0.6.34
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bootstrap-datepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-datepicker/core.js +15 -5
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sw.js +15 -0
- data/vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js +14 -0
- metadata +6 -4
@@ -788,8 +788,8 @@
|
|
788
788
|
getDaysInMonth: function (year, month) {
|
789
789
|
return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]
|
790
790
|
},
|
791
|
-
validParts: /dd?|mm?|MM?|yy(?:yy)?/g,
|
792
|
-
nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\r]+/g,
|
791
|
+
validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,
|
792
|
+
nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
|
793
793
|
parseFormat: function(format){
|
794
794
|
// IE treats \0 as a string end in inputs (truncating the value),
|
795
795
|
// so it's a bad format delimiter, anyway
|
@@ -849,10 +849,18 @@
|
|
849
849
|
setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
|
850
850
|
setters_map['dd'] = setters_map['d'];
|
851
851
|
date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
|
852
|
-
|
853
|
-
|
852
|
+
var fparts = format.parts.slice();
|
853
|
+
// Remove noop parts
|
854
|
+
if (parts.length != fparts.length) {
|
855
|
+
fparts = $(fparts).filter(function(i,p){
|
856
|
+
return $.inArray(p, setters_order) !== -1;
|
857
|
+
}).toArray();
|
858
|
+
}
|
859
|
+
// Process remainder
|
860
|
+
if (parts.length == fparts.length) {
|
861
|
+
for (var i=0, cnt = fparts.length; i < cnt; i++) {
|
854
862
|
val = parseInt(parts[i], 10);
|
855
|
-
part =
|
863
|
+
part = fparts[i];
|
856
864
|
if (isNaN(val)) {
|
857
865
|
switch(part) {
|
858
866
|
case 'MM':
|
@@ -886,6 +894,8 @@
|
|
886
894
|
formatDate: function(date, format, language){
|
887
895
|
var val = {
|
888
896
|
d: date.getUTCDate(),
|
897
|
+
D: dates[language].daysShort[date.getUTCDay()],
|
898
|
+
DD: dates[language].days[date.getUTCDay()],
|
889
899
|
m: date.getUTCMonth() + 1,
|
890
900
|
M: dates[language].monthsShort[date.getUTCMonth()],
|
891
901
|
MM: dates[language].months[date.getUTCMonth()],
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Swahili translation for bootstrap-datepicker
|
3
|
+
* Edwin Mugendi <https://github.com/edwinmugendi>
|
4
|
+
* Source: http://scriptsource.org/cms/scripts/page.php?item_id=entry_detail&uid=xnfaqyzcku
|
5
|
+
*/
|
6
|
+
;(function($){
|
7
|
+
$.fn.datepicker.dates['sw'] = {
|
8
|
+
days: ["Jumapili", "Jumatatu", "Jumanne", "Jumatano", "Alhamisi", "Ijumaa", "Jumamosi", "Jumapili"],
|
9
|
+
daysShort: ["J2", "J3", "J4", "J5", "Alh", "Ij", "J1", "J2"],
|
10
|
+
daysMin: ["2", "3", "4", "5", "A", "I", "1", "2"],
|
11
|
+
months: ["Januari", "Februari", "Machi", "Aprili", "Mei", "Juni", "Julai", "Agosti", "Septemba", "Oktoba", "Novemba", "Desemba"],
|
12
|
+
monthsShort: ["Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ago", "Sep", "Okt", "Nov", "Des"],
|
13
|
+
today: "Leo"
|
14
|
+
};
|
15
|
+
}(jQuery));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Ukrainian translation for bootstrap-datepicker
|
3
|
+
* Andrey Vityuk <andrey [dot] vityuk [at] gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['uk'] = {
|
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.
|
4
|
+
version: 0.6.34
|
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-12-
|
12
|
+
date: 2012-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -162,8 +162,10 @@ files:
|
|
162
162
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sk.js
|
163
163
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sl.js
|
164
164
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js
|
165
|
+
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sw.js
|
165
166
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js
|
166
167
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js
|
168
|
+
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js
|
167
169
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js
|
168
170
|
- vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-TW.js
|
169
171
|
- vendor/assets/stylesheets/bootstrap-datepicker.css
|
@@ -181,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
183
|
version: '0'
|
182
184
|
segments:
|
183
185
|
- 0
|
184
|
-
hash:
|
186
|
+
hash: 2868963677168346268
|
185
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
188
|
none: false
|
187
189
|
requirements:
|
@@ -190,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
192
|
version: '0'
|
191
193
|
segments:
|
192
194
|
- 0
|
193
|
-
hash:
|
195
|
+
hash: 2868963677168346268
|
194
196
|
requirements: []
|
195
197
|
rubyforge_project:
|
196
198
|
rubygems_version: 1.8.24
|