validate
validate copied to clipboard
validateDestroy doesn't work
I met a bug that caused validateDestroy not work, and I try to fixed it.
Line 307: namespace = options.namespace change to namespace = options.nameSpace
after I do so validateDestroy is still out of working, but cause I just want to revalidate so not it is ok for me.
I met with the same bug and fixed it in a similar way. So I just post it here for those looking to fix it themselves.
In addition to line 307, u have to rename namespace to nameSpace in all these lines
307 : nameSpace = options.nameSpace;
319 : fields.filter(type[0]).on('keyup.' + nameSpace, function(event) {
328 : fields.on('blur.' + nameSpace, function(event) {
337 : fields.on('change.' + nameSpace, function(event) {
346 : form.on('submit.' + nameSpace, function(event) {
Or just do a search and replace :-)