wishlist/src/js/giftreg.js
Michael Erdely 1044fa8ccb So many changes... I wanted to do this piece by piece, but once I
got started, I couldn't stop:
Update Smarty
Update bootstrap
Switch to using cards
Set up themes
Improve sorting (add direction)
Use modals for viewing, editing, adding items.
Add Help page
Add bookmarklet
Add footer
2024-10-18 22:07:51 -04:00

9 lines
254 B
JavaScript

// based on http://alittlecode.com/files/jQuery-Validate-Demo/
function validate_highlight(label) {
$(label).closest('.row').addClass('danger');
}
function validate_success(label) {
$(label).addClass('valid').closest('.row').removeClass('danger');
}