File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 62
62
clearInterval ( intervalID ) ;
63
63
}
64
64
} , 100 ) ;
65
+ wrapper . trigger ( 'init' ) ;
65
66
66
67
} ,
67
68
99
100
window . eval ( jsTemplate ) ;
100
101
}
101
102
wrapper . data ( 'multipleInput' ) . currentIndex ++ ;
103
+ wrapper . trigger ( 'addNewRow' ) ;
102
104
} ,
103
105
104
106
removeInput : function ( ) {
105
- var line = $ ( this ) . closest ( '.multiple-input-list__item' ) ;
107
+ var wrapper = $ ( this ) . closest ( '.multiple-input' ) . first ( ) ,
108
+ line = $ ( this ) . closest ( '.multiple-input-list__item' ) ;
106
109
line . find ( 'input, select, textarea' ) . each ( function ( ) {
107
110
methods . removeAttribute . apply ( this ) ;
108
111
} ) ;
109
112
line . fadeOut ( 300 , function ( ) {
110
113
$ ( this ) . remove ( ) ;
111
114
} ) ;
115
+ wrapper . trigger ( 'removeRow' ) ;
112
116
} ,
113
117
114
118
addAttribute : function ( ) {
You can’t perform that action at this time.
0 commit comments