www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bd5ef678f5040936db877d46c6c81f0fd127074c
parent 59e21310a35b9a4a0e0a796daa4592c7ede2c534
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 18 Jan 2010 06:51:39 +0000

Fix recursion error shift-tabbing in metadata pane on item types with no creators


Diffstat:
Mchrome/content/zotero/bindings/itembox.xml | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml @@ -410,7 +410,7 @@ continue; } - // Start tabindex at 1000 after creators + // Start tabindex at 1001 after creators var tabindex = fieldIsClickable ? (i>0 ? this._tabIndexMinFields + i : 1) : 0; this._tabIndexMaxInfoFields = Math.max(this._tabIndexMaxInfoFields, tabindex); @@ -2201,11 +2201,17 @@ return false; case this._tabIndexMinCreators: - var nextIndex = 1; + var nextIndex = 1; // Title field break; case this._tabIndexMinFields: - var nextIndex = this._tabIndexMaxCreators; + // No creators + if (this._tabIndexMaxCreators == 0) { + var nextIndex = 1; // Title field + } + else { + var nextIndex = this._tabIndexMaxCreators; + } break; default: