From 4e3b79f9bb61faa8ac94b5e5e05412f3c01b2a6e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 3 Jul 2009 11:11:13 +0000 Subject: [PATCH] Metadata pane tab fixes - Connect tabs to pane - Allow switching between metadata pane tabs using standard Firefox shortcuts (Ctrl-Tab, Ctrl-Shift-Tab) - Fixed squished look in Firefox 3.5 - Remove some unnecessary padding, providing a little bit more room in the metadata pane Needs a little testing Closes #711, Improve keyboard support --- chrome/content/zotero/itemPane.js | 5 +--- chrome/content/zotero/itemPane.xul | 24 +++++++++++------- chrome/content/zotero/overlay.js | 9 +------ chrome/content/zotero/overlay.xul | 34 +++++++++++++------------- chrome/skin/default/zotero/overlay.css | 20 ++++++++++++++- 5 files changed, 53 insertions(+), 39 deletions(-) diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index 3e66ea2c3..628abf3a5 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -30,7 +30,6 @@ var ZoteroItemPane = new function() { var _lastPane; var _loaded; - var _tabs; var _lastTabIndex; var _tabDirection; var _tabIndexMaxTagsFields = 0; @@ -51,10 +50,8 @@ var ZoteroItemPane = new function() { return; } - _tabs = document.getElementById('zotero-view-tabs'); - // Not in item pane, so skip the introductions - if (!_tabs) { + if (!document.getElementById('zotero-view-tabbox')) { return; } diff --git a/chrome/content/zotero/itemPane.xul b/chrome/content/zotero/itemPane.xul index bd4879ecf..1d65c2199 100644 --- a/chrome/content/zotero/itemPane.xul +++ b/chrome/content/zotero/itemPane.xul @@ -31,10 +31,12 @@