wanew_client_validate 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
-
|
71
|
+
<<-JAVASCRIPT
|
72
|
+
$(document).ready(function(){
|
73
|
+
$('##{id}').validate();
|
74
|
+
});
|
75
|
+
JAVASCRIPT
|
72
76
|
end
|
73
77
|
end
|
74
78
|
|
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:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 16
|
10
|
+
version: 0.0.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- wanliu corporation
|