commit 8469ce821bd6052de0a60aa819cbfa8c15c4db6f
parent 5c5b9af1d75cef6ac36f50ea0bbc2cc4963469f9
Author: Dan Stillman <dstillman@gmail.com>
Date: Fri, 19 Apr 2013 03:22:05 -0700
Merge pull request #305 from rsnape/issue-251-fix
Fix issue #251
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
@@ -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