From 7bcdd50638f7de74b3e0aa6d632c32aa97a21933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Rog=C3=A9rio?= Date: Thu, 29 Jan 2015 10:09:00 -0200 Subject: [PATCH] Bug Fix: assignment to undeclared variable $form --- contact-form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contact-form.js b/contact-form.js index 247b508..b90d597 100644 --- a/contact-form.js +++ b/contact-form.js @@ -5,7 +5,7 @@ Ajax Contact Form + https://github.com/pinceladasdaweb/Ajax-Contact-Form + A Simple Ajax Contact Form developed in PHP with HTML5 Form validation. + Has a fallback in jQuery for browsers that do not support HTML5 form validation. -+ version 1.0 ++ version 1.0.1 + Copyright 2014 Pedro Rogerio + Licensed under the MIT license + https://github.com/pinceladasdaweb/Ajax-Contact-Form @@ -14,7 +14,7 @@ Ajax Contact Form (function ($, window, document, undefined) { 'use strict'; - $form = $('#contact-form'); + var $form = $('#contact-form'); $form.submit(function (e) { // remove the error class @@ -69,4 +69,4 @@ Ajax Contact Form e.preventDefault(); }); -}(jQuery, window, document)); \ No newline at end of file +}(jQuery, window, document));