Skip to content

Commit

Permalink
event to load RS fields using data attributes, if requested with js: …
Browse files Browse the repository at this point in the history
…false
  • Loading branch information
scambra committed Jan 15, 2025
1 parent 8f0947c commit 8a95d7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/jquery/active_scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@
ActiveScaffold.sliders(container);
ActiveScaffold.disable_optional_subforms(container);
ActiveScaffold.update_floating_form_footer(); // check other forms too, state may change
if (container != document) {
jQuery('[data-rs-type]', container).each(function() { RecordSelect.from_attributes(jQuery(this)); });
}
},
setup_history_state: function() {
if (!jQuery('.active-scaffold').length) return;
Expand Down

0 comments on commit 8a95d7a

Please sign in to comment.