kea-rails 2.0.0.pre.alpha6 → 2.0.0.pre.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kea/bindings/date_picker.js +13 -2
- data/lib/kea-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25bf5539b381f32b9ac9e973d3e9b56fb2454ec
|
4
|
+
data.tar.gz: a859b774a0064aab1da30f353597bc9ac8372597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1313b35eacc20fed9a39fa41d4f2f37a51892f8c1d961b775d15a8209f9389bf6798b187455e9e7c69e998df34c5b5409b918ac32974cd3147a6bd615c89d635
|
7
|
+
data.tar.gz: f21c516b38d87bee6a9c5648ab1223e89f0c2eda00a90b32b91a571e822f3b790b74830524771fce54a3417fbd237476f1ec71a0c391b7becf4e726715ad9735
|
@@ -15,6 +15,13 @@
|
|
15
15
|
format: observable.date.options.external,
|
16
16
|
onSelect: function() {
|
17
17
|
observable.date.fromMoment( this.getMoment() );
|
18
|
+
},
|
19
|
+
i18n: {
|
20
|
+
previousMonth : 'vorheriger Monat',
|
21
|
+
nextMonth : 'Nächster Monat',
|
22
|
+
months : ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
|
23
|
+
weekdays : ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
|
24
|
+
weekdaysShort : ['So','Mo','Di','Mi','Do','Fr','Sa']
|
18
25
|
}
|
19
26
|
};
|
20
27
|
|
@@ -25,8 +32,12 @@
|
|
25
32
|
update: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
|
26
33
|
var observable = valueAccessor(),
|
27
34
|
pikaday = $(element).data('pikaday');
|
28
|
-
|
29
|
-
|
35
|
+
|
36
|
+
if (!observable()) {
|
37
|
+
pikaday.setDate(null);
|
38
|
+
} else {
|
39
|
+
pikaday.setMoment( observable.date.toMoment() );
|
40
|
+
}
|
30
41
|
}
|
31
42
|
};
|
32
43
|
|
data/lib/kea-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kea-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.alpha7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan-Christian Foeh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|