bootstrap_builders 0.0.32 → 0.0.33

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: cb7c7644e9b3fb61308f5c91ce4721f6c919af49
4
- data.tar.gz: 4a5fe3886d8bebd03dde534cd3c84f3df7716702
3
+ metadata.gz: a62bc453be7a80f2662495a8b88d3693f79fcd47
4
+ data.tar.gz: a74b8b4b82622596e93622f1a177baaa69295b97
5
5
  SHA512:
6
- metadata.gz: 3a6f4c9f052c961c38d0cbb34c1704aa6b5e9350f047995c4ea7eb9898f58bd1a1a7b52c91e63402e94cac7d8e0cafd50cb77bc54b570ae1701995cc37fef796
7
- data.tar.gz: 21927109d19fdd8320065a4168344f503328a693843e42201ef7e94bcf4ed5c3bac02f7f91e1d3d96d2c6721570a4cff6e8edee90a53e91e0f3e6c54efd6fb88
6
+ metadata.gz: 4a0b236f37c069ff6ec9031250be582a933562461f339579205a1c6d051ec5a6dc6526cb56dddbd875bf984bdb983a40c8c3b773e26c9fffe01cd6c2916fc165
7
+ data.tar.gz: 70d8233cb4b448b15bd70cdd6b99d9a358ac895f6b039518ca0cd8d089b81fa29d923aad511105e51940a884e1bb0507785a42bf8774cbf915f2374efc2cc665
@@ -24,11 +24,15 @@
24
24
  # Parses the date in the input-field and updates all the hidden Rails-inputs from the parsed values.
25
25
  updateValues: ->
26
26
  text_ele = $("input.bb_date_picker, input.bb_date_time_picker", $(@))
27
- year_ele = $(".bb-date-picker-input-year", $(@)).first()
28
- month_ele = $(".bb-date-picker-input-moth", $(@)).first()
29
- day_ele = $(".bb-date-picker-input-day", $(@)).first()
30
- hour_ele = $(".bb-date-picker-input-hour", $(@)).first()
31
- min_ele = $(".bb-date-picker-input-min", $(@)).first()
27
+ year_ele = $(".bb-date-picker-input-year", $(@))
28
+ month_ele = $(".bb-date-picker-input-month", $(@))
29
+ day_ele = $(".bb-date-picker-input-day", $(@))
30
+ hour_ele = $(".bb-date-picker-input-hour", $(@))
31
+ min_ele = $(".bb-date-picker-input-min", $(@))
32
+
33
+ throw "Could not find year element: " + year_ele if year_ele.length <= 0
34
+ throw "Could not find month element: " + month_ele if month_ele.length <= 0
35
+ throw "Could not find month element: " + day_ele if day_ele.length <= 0
32
36
 
33
37
  if $.trim(text_ele.val()) == ""
34
38
  year_ele.val("")
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.32".freeze
2
+ VERSION = "0.0.33".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj