formize 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/assets/javascripts/formize.js +6 -0
  3. metadata +12 -12
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.22
1
+ 0.0.23
@@ -295,11 +295,17 @@ $.behave('input[data-unroll]', 'load', function() {
295
295
  });
296
296
  });
297
297
 
298
+ $.datepicker.regional["en"] = $.datepicker.regional["en-GB"]
299
+ $.datepicker.regional["fra"] = $.datepicker.regional["fr"]
300
+
298
301
  // Initializes date fields
299
302
  $.behave('input[data-datepicker]', "load", function() {
300
303
  var element = $(this);
301
304
  var locale = element.data("locale");
302
305
  var options = $.datepicker.regional[locale];
306
+ if (options === null || options === undefined) {
307
+ options = $.datepicker.regional["en"];
308
+ }
303
309
  if (element.data("date-format") !== null) {
304
310
  options['dateFormat'] = element.data("date-format");
305
311
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &16162680 !ruby/object:Gem::Requirement
16
+ requirement: &21884880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16162680
24
+ version_requirements: *21884880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &16161200 !ruby/object:Gem::Requirement
27
+ requirement: &21883760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *16161200
35
+ version_requirements: *21883760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &16159760 !ruby/object:Gem::Requirement
38
+ requirement: &21882060 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *16159760
46
+ version_requirements: *21882060
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &16158480 !ruby/object:Gem::Requirement
49
+ requirement: &21880760 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *16158480
57
+ version_requirements: *21880760
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &16157380 !ruby/object:Gem::Requirement
60
+ requirement: &21877160 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 2.4.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *16157380
68
+ version_requirements: *21877160
69
69
  description: Like simple_form or formtastic, it aims to handle easily forms but taking
70
70
  in account AJAX and HTML5 on depending fields mainly.
71
71
  email: brice.texier@ekylibre.org
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: 4034628045923266053
201
+ hash: -4196720873939229254
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements: