cased-rails 0.7.0 → 0.8.0
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/cased/index.js +11 -0
- data/lib/cased/rails/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83e07d91751410673496fea04634a147736d1bbc2b4aec44dd018be8c49ea54
|
4
|
+
data.tar.gz: 1f0160bec6805185f337a088f6ef7dd1de867a92d84d0c84be088a0a7d40614f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d8ac8812e70372d5ac1200e4c57410727a2807ae9553ae7b38e1a909524cc50cdc011c468278c8f178bb50614280512bf7eb167155110bbf69f0404364fdcd
|
7
|
+
data.tar.gz: 99df3ef94f912bf24658a21dfaca143ca33e3d4bed1853a36c52ac7b819136f01f0161d1c3d8c59b3ec9b0a0409923a24bc3155a198fc0458a70c0eeb82efd19
|
@@ -72,4 +72,15 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
|
72
72
|
casedLoggedOutContainer.classList.remove("hidden");
|
73
73
|
});
|
74
74
|
}
|
75
|
+
|
76
|
+
const casedReasonFormContainer = document.getElementById("guard-reason-required-form");
|
77
|
+
if (casedReasonFormContainer) {
|
78
|
+
casedReasonFormContainer.addEventListener("submit", (event) => {
|
79
|
+
const submitButton = event.currentTarget.querySelector("button[type='submit']");
|
80
|
+
// Container will change after submission; no need to re-enable the button
|
81
|
+
if (submitButton) {
|
82
|
+
submitButton.disabled = true;
|
83
|
+
}
|
84
|
+
});
|
85
|
+
}
|
75
86
|
});
|
data/lib/cased/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cased-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Bjerkhoel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cased-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jbuilder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 6.0.0
|
48
|
+
- - "<="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '7.1'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
55
|
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
57
|
+
version: 6.0.0
|
58
|
+
- - "<="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '7.1'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rexml
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|