File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 12
12
*/
13
13
( function ( $ ) {
14
14
15
- "use strict" ;
15
+ "use strict" ;
16
16
17
- var methods = {
17
+ var methods = {
18
18
19
- /**
20
- * Kind of the constructor, called before any action
21
- * @param {Map } user options
22
- */
23
- init : function ( options ) {
24
- var form = this ;
25
- if ( ! form . data ( 'jqv' ) || form . data ( 'jqv' ) == null ) {
26
- options = methods . _saveOptions ( form , options ) ;
27
- // bind all formError elements to close on click
28
- $ ( ".formError" ) . live ( "click" , function ( ) {
29
- $ ( this ) . fadeOut ( 150 , function ( ) {
30
- // remove prompt once invisible
31
- $ ( this ) . parent ( '.formErrorOuter' ) . remove ( ) ;
32
- $ ( this ) . remove ( ) ;
33
- } ) ;
34
- } ) ;
35
- }
36
- return this ;
19
+ /**
20
+ * Kind of the constructor, called before any action
21
+ * @param {Map } user options
22
+ */
23
+ init : function ( options ) {
24
+ var form = this ;
25
+ if ( ! form . data ( 'jqv' ) || form . data ( 'jqv' ) == null ) {
26
+ options = methods . _saveOptions ( form , options ) ;
27
+ // bind all formError elements to close on click
28
+ $ ( document ) . on ( "click" , ".formError ", function ( ) {
29
+ $ ( this ) . fadeOut ( 150 , function ( ) {
30
+ // remove prompt once invisible
31
+ $ ( this ) . parent ( '.formErrorOuter' ) . remove ( ) ;
32
+ $ ( this ) . remove ( ) ;
33
+ } ) ;
34
+ } ) ;
35
+ }
36
+ return this ;
37
37
} ,
38
38
/**
39
39
* Attachs jQuery.validationEngine to form.submit and field.blur events
You can’t perform that action at this time.
0 commit comments