adding autocomplete off for the donate form
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 10 Aug 2017 20:11:12 +0000 (16:11 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 10 Aug 2017 20:11:12 +0000 (16:11 -0400)
preventing the use of autocomplete for the donation form

js/app.js
js/custom/donate.js

index 821e153..c4c5cee 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -13,7 +13,9 @@ var g=a(f(this.selector(c),a("<div></div>").html(c.attr("title")).html())),h=thi
         return new_amount;
     }
    
+    
     $(window).on('load', function(){
+        $('.gform_wrapper').find('form').attr('autocomplete', 'off');
         var tags = all_funds;
         var page = $('body');
         var donate_fields = page.find(".donation-input");
@@ -27,7 +29,11 @@ var g=a(f(this.selector(c),a("<div></div>").html(c.attr("title")).html())),h=thi
         $(document).on('keydown.autocomplete','.gfield_list_2_cell2 > input', function(){
             $(this).autocomplete({source: tags});
         });
-        
+
+        $('.gfield_list_2_cell1 > input').keydown(function(event) {
+            
+        });
+
         $(document).on("click", '.delete_list_item', function(e){
             var amount =  $(this).parent().prev().prev().children('input').val();
             amount = strip_nan(amount);
index bdc7db2..e1fddfb 100644 (file)
@@ -4,7 +4,9 @@ $(function(){
         return new_amount;
     }
    
+    
     $(window).on('load', function(){
+        $('.gform_wrapper').find('form').attr('autocomplete', 'off');
         var tags = all_funds;
         var page = $('body');
         var donate_fields = page.find(".donation-input");
@@ -18,7 +20,7 @@ $(function(){
         $(document).on('keydown.autocomplete','.gfield_list_2_cell2 > input', function(){
             $(this).autocomplete({source: tags});
         });
-        
+
         $(document).on("click", '.delete_list_item', function(e){
             var amount =  $(this).parent().prev().prev().children('input').val();
             amount = strip_nan(amount);