Skip to content

Instantly share code, notes, and snippets.

View jawhitney's full-sized avatar

Jonathan Whitney jawhitney

View GitHub Profile
@jawhitney
jawhitney / gist:f03082a2fb57d6cba58b
Last active August 29, 2015 14:11
Hive Radian6 Docs
@jawhitney
jawhitney / formvalidate.js
Created November 4, 2014 19:11
jQuery Form Validation Plugin
/*
* Add data-rule to element to add rule
*/
var errorMessages = {};
if (typeof Drupal !== typeof undefined) {
errorMessages = {
required: Drupal.t('This field is required'),
email: Drupal.t('Please enter a valid email address'),