wanew_client_validate 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,7 +68,11 @@ module WaNew::ClientValidate::ActionView::Helpers
68
68
 
69
69
  def script_bind(id)
70
70
  content_tag(:script, :type=>'text/javascript') do
71
- "$('##{id}').validate();"
71
+ <<-JAVASCRIPT
72
+ $(document).ready(function(){
73
+ $('##{id}').validate();
74
+ });
75
+ JAVASCRIPT
72
76
  end
73
77
  end
74
78
 
@@ -1,5 +1,5 @@
1
1
  module WaNew
2
2
  module ClientValidate
3
- VERSION = "0.0.15"
3
+ VERSION = "0.0.16"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wanew_client_validate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - wanliu corporation