Browse Source

Fix inline-group-row:added event

Denis K 8 years ago
parent
commit
761759447a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jet/static/jet/js/src/features/inlines.js

+ 1 - 1
jet/static/jet/js/src/features/inlines.js

@@ -7,7 +7,7 @@ var Inline = function($inline) {
 
 Inline.prototype = {
     initAddRow: function($inline) {
-        $inline.find('.add-row a').on('click', function() {
+        $inline.on('click', '.add-row a', function() {
             var $inlineItem = $inline.find('.inline-related:not(.empty-form)').last();
             $inline.trigger('inline-group-row:added', [$inlineItem]);
         });