Fix JS for input buttons that are now button buttons
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Builder.js
index fd6a984c13947535d125fd947feb8af9d727ed85..4dc3523571e949d94e59e099d407dcf72bb3e06f 100644 (file)
       })
       // Add new field - if there's a hidden one, show it
       // Otherwise allow form to submit and fetch more from the server
-      .on('click', 'input[name^=addMore]', function() {
+      .on('click', 'button[name^=addMore]', function() {
         var table = $(this).closest('table');
         if ($('tr:hidden', table).length) {
           $('tr:hidden', table).first().show();