Update js for the book room agreement
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 18 May 2017 13:04:32 +0000 (09:04 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 18 May 2017 13:04:32 +0000 (09:04 -0400)
use jquery to setup the click event

js/app.js
js/custom/bookARoom.js

index f5b757c..f9e16d5 100644 (file)
--- 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 () {
index 8552bff..3108371 100644 (file)
@@ -25,3 +25,8 @@ function defaultagree(el){
         }
     }
 }
+$(document).ready(function ($) {
+    $('input[name=agreecheck]').click(function(){
+        agreecheck($(this));
+    });
+});