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 1212 */
1313 ( function ( $ ) {
1414
15- "use strict" ;
15+ "use strict" ;
1616
17- var methods = {
17+ var methods = {
1818
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 ;
3737 } ,
3838 /**
3939 * Attachs jQuery.validationEngine to form.submit and field.blur events
You can’t perform that action at this time.
0 commit comments