call insertion-callback on the correct node (in case a specific insertion-node is specified)

This commit is contained in:
Bart Duchesne 2012-07-30 10:49:17 +02:00
parent 9b61ab50a7
commit a8e0a64ff0

View File

@ -49,7 +49,7 @@
// code and doesn't force it to be a sibling like after/before does. default: 'before' // code and doesn't force it to be a sibling like after/before does. default: 'before'
insertionNode[insertionMethod](contentNode); insertionNode[insertionMethod](contentNode);
$this.parent().trigger('insertion-callback'); insertionNode.trigger('insertion-callback');
}); });
$('.remove_fields.dynamic').live('click', function(e) { $('.remove_fields.dynamic').live('click', function(e) {