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