-
-
Save genescheck/1aabf4601d3545e66ae3 to your computer and use it in GitHub Desktop.
Revisions
-
Matt revised this gist
Apr 11, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ var ContactForm = (function () { bindUIActions: function () { s.submitBtn.on("click", function() { if (!ContactForm.validate()) { // If it doesn't validate, show some errors } }); -
Matt revised this gist
Mar 18, 2013 . 1 changed file with 24 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,33 +1,33 @@ var ContactForm = (function () { var s; return { settings: { inputs: $("#contact_form input"), submitBtn: $(".js-contact_form-submit") }, init: function() { s = this.settings; this.bindUIActions(); }, bindUIActions: function () { s.submitBtn.on("click", function() { if !(ContactForm.validate()) { // If it doesn't validate, show some errors } }); }, validate: function (s.inputs) { inputs.each(function() { // Do some validation here. } } }; })(); ContactForm.init(); -
Matt created this gist
Mar 18, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ var ContactForm = (function () { var s; return { settings: { inputs: $("#contact_form input"), submitBtn: $(".js-contact_form-submit") }, init: function() { s = this.settings; this.bindUIActions(); }, bindUIActions: function () { s.submitBtn.on("click", function() { if !(ContactForm.validate()) { // If it doesn't validate, show some errors } }); }, validate: function (s.inputs) { inputs.each(function() { // Do some validation here. } } }; })(); ContactForm.init();