Skip to content
Snippets Groups Projects
Commit 99d2a3e9 authored by Jelle's avatar Jelle
Browse files

Code cleanup. Removed cck functions from the D6 version, introduced some...

Code cleanup. Removed cck functions from the D6 version, introduced some helper functions, added checkbox support
parent f74c9853
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,10 @@ core = "7.x"
project = "clientside_validation"
datestamp = "1293235803"
; Information added by drupal.org packaging script on 2011-02-25
version = "7.x-1.x-dev"
core = "7.x"
project = "clientside_validation"
datestamp = "1298618975"
......@@ -65,11 +65,11 @@
jQuery.validator.addMethod("checkboxgroupminmax", function(value, element, param) {
var validOrNot = $(param[2] + ' input:checked').length >= param[0] && $(param[2] + ' input:checked').length <= param[1];
if(!$(element).data('being_validated')) {
/*if(!$(element).data('being_validated')) {
var fields = $(param[2] + ' input');
fields.data('being_validated', true).valid();
fields.data('being_validated', false);
}
}*/
return validOrNot;
......
This diff is collapsed.
......@@ -6,6 +6,7 @@
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
......@@ -569,16 +570,15 @@ $.extend($.validator, {
} else if (theregex.test(message)) {
message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters);
}
// ATTIKS, if added
if (message) {
this.errorList.push({
message: message,
element: element
});
}
this.errorMap[element.name] = message;
this.submitted[element.name] = message;
// ATTIKS, if added
if (message) {
this.errorList.push({
message: message,
element: element
});
this.errorMap[element.name] = message;
this.submitted[element.name] = message;
}
},
addWrapper: function(toToggle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment