|
28 | 28 | $(document).on("click", ".formError", function() { |
29 | 29 | $(this).fadeOut(150, function() { |
30 | 30 | // remove prompt once invisible |
31 | | - $(this).closest('.formErrorOuter').remove(); |
| 31 | + $(this).closest('.formError').remove(); |
32 | 32 | }); |
33 | 33 | }); |
34 | 34 | } |
|
209 | 209 | } else { |
210 | 210 | closingtag = methods._getClassName($(this).attr("id")) +"formError"; |
211 | 211 | } |
212 | | - $('.'+closingtag).fadeTo(fadeDuration, 0.3, function() { |
213 | | - $(this).closest('.formErrorOuter').remove(); |
| 212 | + $('.'+closingtag).fadeTo(fadeDuration, 0, function() { |
| 213 | + $(this).closest('.formError').remove(); |
214 | 214 | }); |
215 | 215 | return this; |
216 | 216 | }, |
217 | 217 | /** |
218 | 218 | * Closes all error prompts on the page |
219 | 219 | */ |
220 | | - hideAll: function() { |
221 | | - |
| 220 | + hideAll: function() { |
222 | 221 | var form = this; |
223 | 222 | var options = form.data('jqv'); |
224 | 223 | var duration = options ? options.fadeDuration:300; |
225 | | - $('.formError').fadeTo(duration, 300, function() { |
226 | | - $(this).closest('.formErrorOuter').remove(); |
| 224 | + $('.formError').fadeTo(duration, 0, function() { |
| 225 | + $(this).closest('.formError').remove(); |
227 | 226 | }); |
228 | 227 | return this; |
229 | 228 | }, |
|
1697 | 1696 | prompt.animate({ |
1698 | 1697 | "opacity": 0 |
1699 | 1698 | },function(){ |
1700 | | - prompt.closest('.formErrorOuter').remove(); |
| 1699 | + prompt.closest('.formError').remove(); |
1701 | 1700 | }); |
1702 | 1701 | }, options.autoHideDelay); |
1703 | 1702 | } |
|
1756 | 1755 | var prompt = methods._getPrompt(field); |
1757 | 1756 | if (prompt) |
1758 | 1757 | prompt.fadeTo("fast", 0, function() { |
1759 | | - prompt.closest('.formErrorOuter').remove(); |
| 1758 | + prompt.closest('.formError').remove(); |
1760 | 1759 | }); |
1761 | 1760 | }, |
1762 | 1761 | closePrompt: function(field) { |
|
0 commit comments