Merge pull request #305 from rsnape/issue-251-fix

Fix issue #251
This commit is contained in:
Dan Stillman 2013-04-19 03:22:05 -07:00
commit 8469ce821b

View file

@ -552,7 +552,7 @@
this._displayAllCreators = true;
if (this._addCreatorRow) {
this.addCreatorRow(false, false, true);
this.addCreatorRow(false, this.item.getCreator(max-1).creatorTypeID, true);
this._addCreatorRow = false;
this.disableCreatorAddButtons();
}
@ -1555,8 +1555,8 @@
this._focusNextField(this._dynamicFields, this._lastTabIndex, false);
}
else {
// TODO: should use current creator type
this.addCreatorRow(false, false, true);
var creatorFields = this.getCreatorFields(Zotero.getAncestorByTagName(target, 'row'));
this.addCreatorRow(false, creatorFields.creatorTypeID, true);
}
}
// Value has changed