From: Steve Sutton Date: Thu, 18 May 2017 13:04:32 +0000 (-0400) Subject: Update js for the book room agreement X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=41d297f79b5b5391e17be3bcae8eb5c7de4ca9dc;p=WP-Themes%2Fcharlevoixlibrary.git Update js for the book room agreement use jquery to setup the click event --- diff --git a/js/app.js b/js/app.js index f5b757c..f9e16d5 100644 --- a/js/app.js +++ b/js/app.js @@ -34,6 +34,11 @@ function defaultagree(el){ } } } +$(document).ready(function ($) { + $('input[name=agreecheck]').click(function(){ + agreecheck($(this)); + }); +}); ;// Load foundation $(document).foundation(); $(document).ready(function () { diff --git a/js/custom/bookARoom.js b/js/custom/bookARoom.js index 8552bff..3108371 100644 --- a/js/custom/bookARoom.js +++ b/js/custom/bookARoom.js @@ -25,3 +25,8 @@ function defaultagree(el){ } } } +$(document).ready(function ($) { + $('input[name=agreecheck]').click(function(){ + agreecheck($(this)); + }); +});