Skip to content

Commit

Permalink
Update smart_selects/static/smart-selects/admin/js/bindfields.js
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Androetto <[email protected]>
  • Loading branch information
nortigo and androettop authored Oct 29, 2024
1 parent 1c39a63 commit 16193ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smart_selects/static/smart-selects/admin/js/bindfields.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
initItem(chained);
}

$(document).on('formset:added', function (event) {
$(document).on('formset:added', function (event, _row) {
// Fired every time a new inline formset is created

var chainedFK, chainedM2M, filteredM2M;
var $row = $(event.target);
var $row = _row || $(event.target);

// For the ForeingKey
chainedFK = $row.find(".chained-fk");
Expand Down

0 comments on commit 16193ab

Please sign in to comment.