Skip to content

Commit

Permalink
Bug Fix: assignment to undeclared variable $form
Browse files Browse the repository at this point in the history
  • Loading branch information
pinceladasdaweb committed Jan 29, 2015
1 parent 4cdc362 commit 7bcdd50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contact-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -69,4 +69,4 @@ Ajax Contact Form

e.preventDefault();
});
}(jQuery, window, document));
}(jQuery, window, document));

0 comments on commit 7bcdd50

Please sign in to comment.