Skip to content

Commit

Permalink
Avoid usage of the deprecated jQuery live() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
charettes committed Feb 27, 2015
1 parent 23852f8 commit 33fa740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_choices/static/js/dynamic-choices-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
return true;
}).toArray();
if ($.inArray(true, fields) == -1) return;
$(formset).find(bindedFieldsetFieldsSelector).live('change', function(event) {
$(formset).delegate(bindedFieldsetFieldsSelector, 'change', function(event) {
var index = inlineField(event.target).index;
updateAddLink($(buildInlineFieldId(formsetName, field, index))[0],
bindedFormFieldsSelector,
Expand Down

0 comments on commit 33fa740

Please sign in to comment.