From a21c3b28a20978f5bde47e2497421762b4bf9c8b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 13 Feb 2011 00:26:11 +0000 Subject: [PATCH] properly reset flex attribute on last name after editing --- chrome/content/zotero/bindings/itembox.xml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index b6cce8577..de7ea80c9 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1522,14 +1522,6 @@ fieldName, tabindex ); - - // Reset creator mode settings - if (otherFields.fieldMode) { - this.switchCreatorMode(row, 1, true); - } - else { - this.switchCreatorMode(row, 0, true); - } } // Tags @@ -1683,6 +1675,11 @@ var box = textbox.parentNode; box.replaceChild(elem,textbox); + if(field === 'creator') { + // Reset creator mode settings here so that flex attribute gets reset + this.switchCreatorMode(row, (otherFields.fieldMode ? 1 : 0), true); + } + if (this._tabDirection) { if (!focusMode) { var focusMode = 'info';