Skip to content

Commit

Permalink
fix javascript that submits the form for a submit button, for jquery 7
Browse files Browse the repository at this point in the history
$j(button).form() is no longer a function, so modified the selector
  • Loading branch information
stuzart committed Jul 18, 2024
1 parent a5e2bea commit bb23b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ function validateUploadNewVersion() {

function createOrUpdateResource(resourceName) {
// Disabling the button is handled automatically
$j('#' + resourceName + '_submit_btn').form().submit();
$j('form:has(#' + resourceName + '_submit_btn)').submit();
}

0 comments on commit bb23b32

Please sign in to comment.