fix #18 check for existance
This commit is contained in:
parent
165ab30edd
commit
233160c67d
3 changed files with 10 additions and 4 deletions
|
@ -105,8 +105,11 @@ module.exports = {
|
|||
// @extend
|
||||
addFields: function(field) {
|
||||
var $steps = this.$stepsContainer.find(this.opts.steps.step);
|
||||
if (! ('appendToStep' in field)) {
|
||||
field.appendToStep = $steps.length-1;
|
||||
}
|
||||
field.after = $steps
|
||||
.eq(field.appendToStep || $steps.length-1)
|
||||
.eq(field.appendToStep)
|
||||
.find('input, select, textarea')
|
||||
.last()[0].name;
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
2
js/out/jquery.idealforms.min.js
vendored
2
js/out/jquery.idealforms.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue