From 8274c1c231c2a6147491e63e3ea70163ccda314e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 14 May 2019 22:14:46 -0400 Subject: [PATCH] Tweaks to document import/export Remove unused code and adjust text Follow-up to 48778f28 --- .../content/zotero-platform/mac/bibliography.css | 3 --- chrome/content/zotero/bibliography.js | 13 ++----------- .../zotero/integration/integrationDocPrefs.xul | 8 -------- chrome/locale/en-US/zotero/zotero.dtd | 3 +-- chrome/locale/en-US/zotero/zotero.properties | 9 +++++---- chrome/skin/default/zotero/bibliography.css | 15 --------------- 6 files changed, 8 insertions(+), 43 deletions(-) delete mode 100644 chrome/content/zotero-platform/mac/bibliography.css diff --git a/chrome/content/zotero-platform/mac/bibliography.css b/chrome/content/zotero-platform/mac/bibliography.css deleted file mode 100644 index 9a476e2b61..0000000000 --- a/chrome/content/zotero-platform/mac/bibliography.css +++ /dev/null @@ -1,3 +0,0 @@ -.chevron { - font-size: 1.5em; -} \ No newline at end of file diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index cea8610800..86e3e25a46 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -243,27 +243,18 @@ var Zotero_File_Interface_Bibliography = new function() { window.sizeToContent(); }; - this.toggleAdvanced = function() { - var advancedSettings = document.querySelector("#advanced-settings"); - advancedSettings.hidden = !advancedSettings.hidden; - var chevron = document.querySelector('.chevron'); - chevron.classList.toggle('chevron-down'); - chevron.classList.toggle('chevron-up'); - window.sizeToContent(); - }; - this.exportDocument = function() { const importExportWikiURL = "https://www.zotero.org/support/kb/export_import_document"; var ps = Services.prompt; - var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_OK) + var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL) + (ps.BUTTON_POS_2) * (ps.BUTTON_TITLE_IS_STRING); var result = ps.confirmEx(null, Zotero.getString('integration.exportDocument'), Zotero.getString('integration.exportDocument.description'), buttonFlags, - null, + Zotero.getString('general.export'), null, Zotero.getString('general.moreInformation'), null, {}); if (result == 0) { diff --git a/chrome/content/zotero/integration/integrationDocPrefs.xul b/chrome/content/zotero/integration/integrationDocPrefs.xul index c6c069b0a9..2b55148fde 100644 --- a/chrome/content/zotero/integration/integrationDocPrefs.xul +++ b/chrome/content/zotero/integration/integrationDocPrefs.xul @@ -26,7 +26,6 @@ - &zotero.integration.prefs.automaticJournalAbbeviations.caption; - - - - - - -