Skip to content

Commit

Permalink
Initialize nestable form weights
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jan 27, 2025
1 parent 83c1946 commit 1cb4bf3
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 1cb4bf3

Please sign in to comment.