nyros_form2 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: 33759eec8bb844dd22baf269ef6a7f2d2c0dd447a9fc1d4f67c641fb7ec702fa
4
- data.tar.gz: f0d21763f60acc4fa087bddd839fb94f2e833a73f36540f0b317cc9889b6a767
3
+ metadata.gz: c7e5ff99a7160a0d8f79f420e2c75cba086d3133767d976b8181774b69202111
4
+ data.tar.gz: 22d5cf45133336c385ddd7224c92edb92b7e5257b21d9a984d4454302f0e8a54
5
5
  SHA512:
6
- metadata.gz: 28389736dc9398354437f1eae4227f24cb9baa3616bb1761ef28f85a0153d5f593fa8de38142b75aec6e6635bdebe33a9f5ad325744f233a561d72424be66956
7
- data.tar.gz: 4d2cdace61b0ea043a7b3090eacd120635346cac0dbcfbdb01356238061cb84663b20c0eda86e8d1d28f0ddeeebc7d65bc04453c8ea919512cf5d663ef312448
6
+ metadata.gz: 0f174979e626c3bf485987a3fdf1db864f877bc56eda510ea133602c3a173fbbd9d141f9f7caac445dfe88d3dccbbc291f98d12708386f1924e433d4abf7faf6
7
+ data.tar.gz: a699f2c846a3074c2e2bc5e0ac5df85354189e1ed4552fe890485161c2235b8b5d05cebfff3796142c8e2c14808515ba41cd1aeccd11a06e970f6029448c7375
@@ -13,9 +13,37 @@
13
13
 
14
14
  //= require rails-ujs
15
15
  //= require activestorage
16
- //= require jquery_ujs
17
- //= require bootstrap
18
16
  //= require_tree .
19
17
 
20
18
 
21
-
19
+ // On change form validations
20
+ $(function() {
21
+ $("form[name='myForm']").validate({
22
+ rules: {
23
+ name: "required",
24
+ email: {
25
+ required: true,
26
+ email: true
27
+ },
28
+ mobile: {
29
+ required: true,
30
+ digits: true,
31
+ minlength: 10,
32
+ maxlength: 10,
33
+ }
34
+ },
35
+ // Specify validation error messages
36
+ messages: {
37
+ name: "Please enter your firstname",
38
+ mobile: {
39
+ required: "Please Enter mobile number",
40
+ minlength: "Your Mobile must be at least 10 numbers long"
41
+ },
42
+ email: "Please enter a valid email address"
43
+ },
44
+ // in the "action" attribute of the form when valid
45
+ submitHandler: function(form) {
46
+ form.submit();
47
+ }
48
+ });
49
+ });
@@ -1,3 +1,3 @@
1
1
  module NyrosForm2
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyros_form2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - raju rekadi