Universal Form Validator ASP Support Product Page
DateDE (date with dot) condition not working
Reported 27 Aug 2010 13:27:21
1
has this problem
27 Aug 2010 13:27:21 Jerry Smith posted:
German type of date (like 1.1.2000) is not working ;-(And not fixed in the newest relase...
I looked at the code, at DateDECond after return there are some wierd things, part of your code seems missing :-(((
Whenever I take this module I find new bugs. That's incredible, as we already fixed 20 bugs I found :-/
Edited by - Jerry Smith on 27 Aug 2010 13:45:15
Replies
Replied 27 Aug 2010 13:34:27
27 Aug 2010 13:34:27 Jerry Smith replied:
Anyway, here is the fix: In file: dmx.jquery.validate.js
find:
dateDEcond:function(b,a,c){if(!checkConditional(c,1)){return true}return/^\d{1,2}\.\d{1,2}\.\d{2,4}$/.test(b)}
and replace with:
dateDEcond:function(b,a,c){if(!checkConditional(c,1)){return true}return jQuery.validator.methods.dateDE.call(this,b,a,c[0])}
You are welcome for the free fix.
find:
dateDEcond:function(b,a,c){if(!checkConditional(c,1)){return true}return/^\d{1,2}\.\d{1,2}\.\d{2,4}$/.test(b)}
and replace with:
dateDEcond:function(b,a,c){if(!checkConditional(c,1)){return true}return jQuery.validator.methods.dateDE.call(this,b,a,c[0])}
You are welcome for the free fix.
Replied 31 Aug 2010 18:14:14
31 Aug 2010 18:14:14 Teodor Kuduschiev replied:
Hello Jerry,
Thank you for your feedback and reporting this issue. I'll pass this to the developer so it should be fixed in the next releases.
Thank you for your feedback and reporting this issue. I'll pass this to the developer so it should be fixed in the next releases.