From 84cf9d8cbe6935999b2dfbb1f2e8d7f8ec1cccc2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 9 Jul 2010 20:10:43 +0000 Subject: [PATCH] =?UTF-8?q?Closes=20#1037,=20Remove=20Firefox=202.0/3.0?= =?UTF-8?q?=E2=80=93specific=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/zotero-platform/mac/overlay.css | 128 ++++++++-------- chrome/content/zotero/advancedSearch.js | 4 - chrome/content/zotero/bibliography.js | 5 - chrome/content/zotero/bibliography.xul | 6 +- .../bindings/conditional-timed-textbox.xml | 54 ------- .../content/zotero/bindings/tagselector.xml | 15 +- .../zotero/integration/addCitationDialog.xul | 4 +- .../integration/editBibliographyDialog.xul | 4 +- chrome/content/zotero/overlay.js | 25 --- chrome/content/zotero/overlay.xul | 2 - chrome/content/zotero/selectItemsDialog.js | 2 - chrome/content/zotero/selectItemsDialog.xul | 4 +- .../zotero/xpcom/collectionTreeView.js | 17 +-- chrome/content/zotero/xpcom/itemTreeView.js | 98 +++--------- chrome/content/zotero/xpcom/utilities.js | 117 ++++----------- chrome/content/zotero/xpcom/zotero.js | 142 +++++------------- chrome/locale/af-ZA/zotero/zotero.dtd | 2 - chrome/locale/ar/zotero/zotero.dtd | 2 - chrome/locale/bg-BG/zotero/zotero.dtd | 2 - chrome/locale/ca-AD/zotero/zotero.dtd | 2 - chrome/locale/cs-CZ/zotero/zotero.dtd | 2 - chrome/locale/da-DK/zotero/zotero.dtd | 2 - chrome/locale/de-AT/zotero/zotero.dtd | 2 - chrome/locale/de-CH/zotero/zotero.dtd | 2 - chrome/locale/de-DE/zotero/zotero.dtd | 2 - chrome/locale/el-GR/zotero/zotero.dtd | 2 - chrome/locale/en-US/zotero/zotero.dtd | 2 - chrome/locale/es-ES/zotero/zotero.dtd | 2 - chrome/locale/et-EE/zotero/zotero.dtd | 2 - chrome/locale/eu-ES/zotero/zotero.dtd | 2 - chrome/locale/fi-FI/zotero/zotero.dtd | 2 - chrome/locale/fr-FR/zotero/zotero.dtd | 2 - chrome/locale/gl-ES/zotero/zotero.dtd | 2 - chrome/locale/he-IL/zotero/zotero.dtd | 2 - chrome/locale/hr-HR/zotero/zotero.dtd | 2 - chrome/locale/hu-HU/zotero/zotero.dtd | 2 - chrome/locale/is-IS/zotero/zotero.dtd | 2 - chrome/locale/it-IT/zotero/zotero.dtd | 2 - chrome/locale/ja-JP/zotero/zotero.dtd | 2 - chrome/locale/ko-KR/zotero/zotero.dtd | 2 - chrome/locale/mn-MN/zotero/zotero.dtd | 2 - chrome/locale/nb-NO/zotero/zotero.dtd | 2 - chrome/locale/nl-NL/zotero/zotero.dtd | 2 - chrome/locale/pl-PL/zotero/zotero.dtd | 2 - chrome/locale/pt-BR/zotero/zotero.dtd | 2 - chrome/locale/pt-PT/zotero/zotero.dtd | 2 - chrome/locale/ro-RO/zotero/zotero.dtd | 2 - chrome/locale/ru-RU/zotero/zotero.dtd | 2 - chrome/locale/sk-SK/zotero/zotero.dtd | 2 - chrome/locale/sl-SI/zotero/zotero.dtd | 2 - chrome/locale/sr-RS/zotero/zotero.dtd | 2 - chrome/locale/sv-SE/zotero/zotero.dtd | 2 - chrome/locale/th-TH/zotero/zotero.dtd | 2 - chrome/locale/tr-TR/zotero/zotero.dtd | 2 - chrome/locale/vi-VN/zotero/zotero.dtd | 2 - chrome/locale/zh-CN/zotero/zotero.dtd | 2 - chrome/locale/zh-TW/zotero/zotero.dtd | 2 - .../default/zotero/bindings/tagselector.css | 11 -- chrome/skin/default/zotero/overlay.css | 21 +-- .../default/zotero/search-cancel-active.png | Bin 311 -> 0 bytes chrome/skin/default/zotero/search-cancel.png | Bin 310 -> 0 bytes chrome/skin/default/zotero/zotero.css | 5 - components/zotero-autocomplete.js | 2 +- 63 files changed, 172 insertions(+), 576 deletions(-) delete mode 100644 chrome/content/zotero/bindings/conditional-timed-textbox.xml delete mode 100644 chrome/skin/default/zotero/search-cancel-active.png delete mode 100644 chrome/skin/default/zotero/search-cancel.png diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index 5b7e042baf..6d788dbe4c 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -103,17 +103,13 @@ margin: none; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox { +#zotero-view-tabbox { background-color: #fff; padding: 0; margin: 0; } -:root[moz-version="3.0"] #zotero-view-tabbox { - margin: 2px 0 0 0; -} - -:root:not([moz-version="3.0"]) #zotero-item-pane-content .groupbox-body { +#zotero-item-pane-content .groupbox-body { -moz-appearance: none; background-color: #ffffff; } @@ -127,31 +123,31 @@ padding: 0; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabpanels { +#zotero-view-tabbox > tabpanels { margin: 12px 0 0 0; -moz-appearance: none; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs { +#zotero-view-tabbox > tabs { -moz-appearance: -moz-mac-unified-toolbar; padding: 2px; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab > hbox > .tab-icon { +#zotero-view-tabbox > tabs > tab > hbox > .tab-icon { display: none; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab > hbox .tab-text { +#zotero-view-tabbox > tabs > tab > hbox .tab-text { text-shadow: rgba(255, 255, 255, 0.4) 0 1px !important; font-size: 11px; font-weight: bold; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:active:hover > hbox > .tab-text, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[selected=true] > hbox > .tab-text { +#zotero-view-tabbox > tabs > tab:active:hover > hbox > .tab-text, +#zotero-view-tabbox > tabs > tab[selected=true] > hbox > .tab-text { text-shadow: none !important; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab { +#zotero-view-tabbox > tabs > tab { -moz-box-orient: vertical; -moz-box-align: center; -moz-appearance: none; @@ -163,114 +159,114 @@ -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle.png") 0 4 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:active:hover { +#zotero-view-tabbox > tabs > tab:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-down.png") 0 4 0 5 repeat stretch; text-shadow: none !important; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[selected=true] { +#zotero-view-tabbox > tabs > tab[selected=true] { color: #FFF !important; text-shadow: rgba(0, 0, 0, 0.4) 0 1px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected.png") 0 4 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[selected=true]:active:hover { +#zotero-view-tabbox > tabs > tab[selected=true]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected-down.png") 0 4 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > * { +:root:not([active]) #zotero-view-tabbox > tabs > * { color: #7C7C7C !important; /* remove this when we support click-through */ -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-inactive.png") 0 4 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > tab[selected=true] { +:root:not([active]) #zotero-view-tabbox > tabs > tab[selected=true] { color: #C5C5C5 !important; /* remove this when we support click-through */ -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected-inactive.png") 0 4 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > :first-child, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > [first-visible], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { +#zotero-view-tabbox > tabs > :first-child, +#zotero-view-tabbox > tabs > [first-visible], +#zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, +#zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { border-width: 0 4px 0 6px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > :first-child:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > [first-visible]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible]:active:hover { +#zotero-view-tabbox > tabs > :first-child:active:hover, +#zotero-view-tabbox > tabs > [first-visible]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > :last-child:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-down.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:first-child[selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { +#zotero-view-tabbox > tabs > tab:first-child[selected=true], +#zotero-view-tabbox > tabs > tab[first-visible][selected=true], +#zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], +#zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:first-child[selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true]:active:hover, { +#zotero-view-tabbox > tabs > tab:first-child[selected=true]:active:hover, +#zotero-view-tabbox > tabs > tab[first-visible][selected=true]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true]:active:hover, { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected-down.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > :first-child, -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > [first-visible], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { +:root:not([active]) #zotero-view-tabbox > tabs > :first-child, +:root:not([active]) #zotero-view-tabbox > tabs > [first-visible], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-inactive.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > tab:first-child[selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { +:root:not([active]) #zotero-view-tabbox > tabs > tab:first-child[selected=true], +:root:not([active]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected-inactive.png") 0 4 0 6 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > :last-child, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > [last-visible], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { +#zotero-view-tabbox > tabs > :last-child, +#zotero-view-tabbox > tabs > [last-visible], +#zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, +#zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { border-width: 0 6px 0 5px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right.png") 0 6 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > :last-child:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > [last-visible]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible]:active:hover { +#zotero-view-tabbox > tabs > :last-child:active:hover, +#zotero-view-tabbox > tabs > [last-visible]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > :first-child:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-down.png") 0 6 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:last-child[selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { +#zotero-view-tabbox > tabs > tab:last-child[selected=true], +#zotero-view-tabbox > tabs > tab[last-visible][selected=true], +#zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], +#zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected.png") 0 6 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab:last-child[selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true]:active:hover, -:root:not([moz-version="3.0"]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true]:active:hover { +#zotero-view-tabbox > tabs > tab:last-child[selected=true]:active:hover, +#zotero-view-tabbox > tabs > tab[last-visible][selected=true]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true]:active:hover, +#zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected-down.png") 0 6 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > :last-child, -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > [last-visible], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { +:root:not([active]) #zotero-view-tabbox > tabs > :last-child, +:root:not([active]) #zotero-view-tabbox > tabs > [last-visible], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-inactive.png") 0 6 0 5 repeat stretch; } -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > tab:last-child[selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], -:root:not([moz-version="3.0"]) :root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { +:root:not([active]) #zotero-view-tabbox > tabs > tab:last-child[selected=true], +:root:not([active]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], +:root:not([active]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected-inactive.png") 0 6 0 5 repeat stretch; } diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index 9c92ad8309..3a68a03cd8 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -164,10 +164,6 @@ var ZoteroAdvancedSearch = new function() { this.startDrag = function (event, element) { - if (Zotero.isFx2 || Zotero.isFx30) { - nsDragAndDrop.startDrag(event, element); - return; - } element.onDragStart(event); } diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index e098f92848..1568fd392d 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -94,11 +94,6 @@ var Zotero_File_Interface_Bibliography = new function() { // restore saved bibliographic settings document.getElementById('output-radio').selectedItem = document.getElementById(Zotero.Prefs.get("export.bibliographySettings")); - - // disable clipboard in Fx3.0 on the Mac, because it can't support formatted output - if(Zotero.isMac && Zotero.isFx30) { - document.getElementById("mac-clipboard-warning").hidden = false; - } } // ONLY FOR integrationDocPrefs.xul: update status of displayAs, set diff --git a/chrome/content/zotero/bibliography.xul b/chrome/content/zotero/bibliography.xul index 904c9f316b..ff3c3f53d8 100644 --- a/chrome/content/zotero/bibliography.xul +++ b/chrome/content/zotero/bibliography.xul @@ -21,11 +21,7 @@ - - - + diff --git a/chrome/content/zotero/bindings/conditional-timed-textbox.xml b/chrome/content/zotero/bindings/conditional-timed-textbox.xml deleted file mode 100644 index e3794c9817..0000000000 --- a/chrome/content/zotero/bindings/conditional-timed-textbox.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index bd0dcc8657..e6fb2bd30a 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -160,10 +160,6 @@ this.id('display-all-tags').setAttribute('checked', !this.filterToScope); this.id('show-automatic').setAttribute('checked', this.showAutomatic); this.dragObserver = new this._dragObserverConstructor; - if(Zotero.isFx30) { - this.id('tags-search-filter').hidden = false; - this.id('tags-search').setAttribute('type', 'timed'); - } ]]> @@ -552,10 +548,6 @@ var textbox = this.id('tags-search'); var t = textbox.inputField; - if (Zotero.isFx30) { - textbox.firstChild.hidden = (t.value == ""); - } - if (typeof clear != 'undefined') { if (clear){ t.value = ''; @@ -798,13 +790,10 @@ -