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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af54eff7023152d3ecb1c55c4b2a2d7c60c5f262
4
- data.tar.gz: 92d6efe82fac551cc364b7239524430ad68fe705
3
+ metadata.gz: b25bf5539b381f32b9ac9e973d3e9b56fb2454ec
4
+ data.tar.gz: a859b774a0064aab1da30f353597bc9ac8372597
5
5
  SHA512:
6
- metadata.gz: fc35ed50c8757faa11bb9656a5739a086080795a7bd09bd7dbd7a20f6686feb36b0cc750d1deff3c313253601b3e97c0df6c83a64b1c119365ca3de7d303872b
7
- data.tar.gz: 453afc42614917b3218cb424cdfb935c045fb8aae5d00b972e2822e5c0aefa0caf09b61d09d2e704f6734f2e100bf00eddea94225bd1344fab3be931b3b94c39
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
- pikaday.setMoment( observable.date.toMoment() );
35
+
36
+ if (!observable()) {
37
+ pikaday.setDate(null);
38
+ } else {
39
+ pikaday.setMoment( observable.date.toMoment() );
40
+ }
30
41
  }
31
42
  };
32
43
 
@@ -1,3 +1,3 @@
1
1
  module Kea
2
- VERSION = "2.0.0-alpha6"
2
+ VERSION = "2.0.0-alpha7"
3
3
  end
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.alpha6
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-03-30 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails