From 6539cace598c7475ba6e90a56b808e59603ea8ee Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 28 Nov 2009 21:45:25 +0000 Subject: [PATCH] Add Zotero storage TOS link --- chrome/content/zotero/preferences/preferences.js | 15 +++++++++++++++ .../content/zotero/preferences/preferences.xul | 15 ++++++++++----- chrome/skin/default/zotero/preferences.css | 16 ++++++++++++++++ 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index d3ff25f139..f13328b19f 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -243,6 +243,21 @@ function updateStorageSettings(enabled, protocol, skipWarnings) { } } } + + setTimeout(function () { + updateStorageTerms(); + }, 1) +} + + +function updateStorageTerms() { + var terms = document.getElementById('storage-terms'); + + var libraryEnabled = document.getElementById('pref-storage-enabled').value; + var storageProtocol = document.getElementById('pref-storage-protocol').value; + var groupsEnabled = document.getElementById('pref-group-storage-enabled').value; + + terms.hidden = !((libraryEnabled && storageProtocol == 'zotero') || groupsEnabled); } diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 9930ef4cec..5bd92cfea5 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -325,14 +325,19 @@ To add a new preference: - + - - + + diff --git a/chrome/skin/default/zotero/preferences.css b/chrome/skin/default/zotero/preferences.css index c5cdad212b..7f8a7eab52 100644 --- a/chrome/skin/default/zotero/preferences.css +++ b/chrome/skin/default/zotero/preferences.css @@ -115,6 +115,22 @@ grid row hbox:first-child min-width: 8em; } +#storage-terms > label +{ + margin-left: 0; + font-size: .9em; +} + +#storage-terms > label:first-child +{ + margin-right: .25em; +} + +#storage-terms > label[class=text-link] +{ + margin-right: 0; +} + /* Reset tab */ #zotero-reset row {