File tree 1 file changed +4
-9
lines changed 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 28
28
$ ( document ) . on ( "click" , ".formError" , function ( ) {
29
29
$ ( this ) . fadeOut ( 150 , function ( ) {
30
30
// remove prompt once invisible
31
- $ ( this ) . parent ( '.formErrorOuter' ) . remove ( ) ;
32
- $ ( this ) . remove ( ) ;
31
+ $ ( this ) . closest ( '.formErrorOuter' ) . remove ( ) ;
33
32
} ) ;
34
33
} ) ;
35
34
}
207
206
closingtag = methods . _getClassName ( $ ( this ) . attr ( "id" ) ) + "formError" ;
208
207
}
209
208
$ ( '.' + closingtag ) . fadeTo ( fadeDuration , 0.3 , function ( ) {
210
- $ ( this ) . parent ( '.formErrorOuter' ) . remove ( ) ;
211
- $ ( this ) . remove ( ) ;
209
+ $ ( this ) . closest ( '.formErrorOuter' ) . remove ( ) ;
212
210
} ) ;
213
211
return this ;
214
212
} ,
221
219
var options = form . data ( 'jqv' ) ;
222
220
var duration = options ? options . fadeDuration :300 ;
223
221
$ ( '.formError' ) . fadeTo ( duration , 300 , function ( ) {
224
- $ ( this ) . parent ( '.formErrorOuter' ) . remove ( ) ;
225
- $ ( this ) . remove ( ) ;
222
+ $ ( this ) . closest ( '.formErrorOuter' ) . remove ( ) ;
226
223
} ) ;
227
224
return this ;
228
225
} ,
1676
1673
"opacity" : 0
1677
1674
} , function ( ) {
1678
1675
prompt . closest ( '.formErrorOuter' ) . remove ( ) ;
1679
- prompt . remove ( ) ;
1680
1676
} ) ;
1681
1677
} , options . autoHideDelay ) ;
1682
1678
}
1734
1730
var prompt = methods . _getPrompt ( field ) ;
1735
1731
if ( prompt )
1736
1732
prompt . fadeTo ( "fast" , 0 , function ( ) {
1737
- prompt . parent ( '.formErrorOuter' ) . remove ( ) ;
1738
- prompt . remove ( ) ;
1733
+ prompt . closest ( '.formErrorOuter' ) . remove ( ) ;
1739
1734
} ) ;
1740
1735
} ,
1741
1736
closePrompt : function ( field ) {
You can’t perform that action at this time.
0 commit comments