diff --git a/js/auto-submit.js b/js/auto-submit.js index a3e9aa4..e722daa 100644 --- a/js/auto-submit.js +++ b/js/auto-submit.js @@ -43,9 +43,11 @@ Drupal.behaviors.CToolsAutoSubmit = { } // the change event bubbles so we only need to bind it to the outer form - $('form.ctools-auto-submit-full-form', context) - .add('.ctools-auto-submit', context) - .filter('form, select, input:not(:text, :submit)') + $('.ctools-auto-submit-full-form', context) + .add( + $('.ctools-auto-submit', context) + .filter('form, select, input:not(:text, :submit)') + ) .once('ctools-auto-submit') .change(function (e) { // don't trigger on text change for full-form