Need to pass $ to functions
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 24 Jul 2019 15:22:40 +0000 (11:22 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 24 Jul 2019 15:22:40 +0000 (11:22 -0400)
For setting up jQuery using $

views/ui/f6/form-start.html

index 9e4084a..a917c5f 100644 (file)
@@ -26,7 +26,7 @@
     </div>
     {if !empty($ui.validateFocusMsg)}
         <script>
-            jQuery(document).ready(function(){
+            jQuery(document).ready(function($){
                 $(document).on( 'forminvalid.zf.abide', function( ev, frm ) {
                     console.log( 'forminvalid' );
                     $("html, body").animate({ scrollTop: $('#validateMessage{if !empty($ui.validateID)}_{$ui.validateID}{/if}').offset().top }, 500);