Skip to content

Commit

Permalink
add custom events
Browse files Browse the repository at this point in the history
  • Loading branch information
sokrat committed Oct 30, 2015
1 parent addf5cd commit c7ab63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
var newRow = $.parseHTML(template);
$(newRow).removeClass('template');
//var newRow = this._templateRow...replace('{$id}', this.maxIndex);
$(this.element).append(newRow);
$(this.element).append(newRow).trigger('multiInput:addRow', [newRow]);
},
removeRow: function(element) {
$(element).parent().remove();
$(this.element).trigger('multiInput:removeRow');
}
});

Expand Down

0 comments on commit c7ab63d

Please # to comment.