Skip to content

Commit 49543ff

Browse files
committed
Revert "Fixing issue 257. Allow hide prompts without fade"
This reverts commit b42da32.
1 parent b42da32 commit 49543ff

8 files changed

+15
-30
lines changed

js/jquery.validationEngine.js

+15-30
Original file line numberDiff line numberDiff line change
@@ -180,53 +180,38 @@
180180
/**
181181
* Closes all error prompts on the page
182182
*/
183-
hidePrompt: function(fade) {
183+
hidePrompt: function() {
184184
var promptClass = "."+ methods._getClassName($(this).attr("id")) + "formError";
185-
if(fade) {
186-
$(promptClass).fadeTo("fast", 0.3, function() {
187-
$(this).parent('.formErrorOuter').remove();
188-
$(this).remove();
189-
});
190-
} else {
191-
$(promptClass).parent('.formErrorOuter').remove();
192-
$(promptClass).remove();
193-
}
185+
$(promptClass).fadeTo("fast", 0.3, function() {
186+
$(this).parent('.formErrorOuter').remove();
187+
$(this).remove();
188+
});
194189
return this;
195190
},
196191
/**
197192
* Closes form error prompts, CAN be invidual
198193
*/
199-
hide: function(fade) {
194+
hide: function() {
200195
var closingtag;
201196
if($(this).is("form")){
202197
closingtag = "parentForm"+methods._getClassName($(this).attr("id"));
203198
}else{
204199
closingtag = methods._getClassName($(this).attr("id")) +"formError";
205200
}
206-
if(fade) {
207-
$('.'+closingtag).fadeTo("fast", 0.3, function() {
208-
$(this).parent('.formErrorOuter').remove();
209-
$(this).remove();
210-
});
211-
} else {
212-
$('.'+closingtag).parent('.formErrorOuter').remove();
213-
$('.'+closingtag).remove();
214-
}
201+
$('.'+closingtag).fadeTo("fast", 0.3, function() {
202+
$(this).parent('.formErrorOuter').remove();
203+
$(this).remove();
204+
});
215205
return this;
216206
},
217207
/**
218208
* Closes all error prompts on the page
219209
*/
220-
hideAll: function(fade) {
221-
if(fade) {
222-
$('.formError').fadeTo("fast", 0.3, function() {
223-
$(this).parent('.formErrorOuter').remove();
224-
$(this).remove();
225-
});
226-
} else {
227-
$('.formError').parent('.formErrorOuter').remove();
228-
$('.formError').remove();
229-
}
210+
hideAll: function() {
211+
$('.formError').fadeTo("fast", 0.3, function() {
212+
$(this).parent('.formErrorOuter').remove();
213+
$(this).remove();
214+
});
230215
return this;
231216
},
232217
/**
Binary file not shown.
Binary file not shown.

test/AjaxTestServer.class

3.22 KB
Binary file not shown.

test/NanoHTTPD$1.class

-817 Bytes
Binary file not shown.

test/NanoHTTPD$HTTPSession.class

-1.25 KB
Binary file not shown.

test/NanoHTTPD$Response.class

3.77 KB
Binary file not shown.

test/NanoHTTPD.class

-5.97 KB
Binary file not shown.

0 commit comments

Comments
 (0)