fix #18 check for existance

This commit is contained in:
elclanrs 2013-11-12 00:59:09 -05:00
parent 165ab30edd
commit 233160c67d
3 changed files with 10 additions and 4 deletions

View file

@ -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

File diff suppressed because one or more lines are too long