Skip to content

Commit

Permalink
Merge pull request #3421 from projectblacklight/nestable-init-fix
Browse files Browse the repository at this point in the history
Initialize nestable form weights
  • Loading branch information
jcoyne authored Jan 28, 2025
2 parents ed69a92 + 1cb4bf3 commit 1c2b7df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/spotlight/spotlight.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.esm.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions app/assets/javascripts/spotlight/spotlight.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions app/javascript/spotlight/admin/spotlight_nestable.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const Module = (function() {
nestedSortables.forEach(sortable => {
new Sortable(sortable, { ...sortableOptions, group: group });
});

updateWeightsAndRelationships(container);
});
}
};
Expand Down

0 comments on commit 1c2b7df

Please sign in to comment.