datepicker, jquery validation on the important forms

This commit is contained in:
Ryan Walberg 2012-11-27 03:00:55 +00:00
parent 385c88941f
commit 29a1ef6c61
9 changed files with 747 additions and 13 deletions

9
src/js/giftreg.js Normal file
View file

@ -0,0 +1,9 @@
// based on http://alittlecode.com/files/jQuery-Validate-Demo/
function validate_highlight(label) {
$(label).closest('.control-group').removeClass('success').addClass('error');
}
function validate_success(label) {
$(label).addClass('valid').closest('.control-group').removeClass('error').addClass('success');
}