Skip to content

Commit

Permalink
Merge pull request #95 from aleevas/DS-1300
Browse files Browse the repository at this point in the history
fix: [DS-1300] Add a fix for the auto-submit auth form functionality of the openy_gc_auth_example module
  • Loading branch information
podarok authored Jan 16, 2024
2 parents 5eceb28 + a69fdb1 commit 89ff457
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

Drupal.behaviors.openy_gc_auth_example = {
attach: function(context, settings) {
$(once('openy_gc_auth-data-autosubmit', 'input[data-autosubmit=1]'))
.form().submit();
if ($('.openy-gc-auth-example-login-form').find('.form-submit').attr('data-autosubmit') === '1') {
$(once('openy_gc_auth_example_form_autosubmit', '.openy-gc-auth-example-login-form', context))
.trigger( "submit" );
}
}
};

Expand Down

0 comments on commit 89ff457

Please sign in to comment.