Add Zotero storage TOS link

This commit is contained in:
Dan Stillman 2009-11-28 21:45:25 +00:00
parent c0b97e339a
commit 6539cace59
3 changed files with 41 additions and 5 deletions

View file

@ -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);
}

View file

@ -325,14 +325,19 @@ To add a new preference:
<separator id="storage-separator" class="thin"/>
<!-- Group Libraries -->
<checkbox label="Sync attachment files in group libraries using Zotero File Storage"
preference="pref-group-storage-enabled"/>
<checkbox label="Sync attachment files in group libraries using Zotero storage"
preference="pref-group-storage-enabled" oncommand="setTimeout(function () { updateStorageTerms(); }, 1)"/>
<separator class="thin"/>
<hbox style="margin-top:.3em">
<label class="text-link" style="margin-left: 0" value="About File Syncing" href="http://zotero.org/support/file_sync"/>
</hbox>
<vbox>
<label class="text-link" style="margin-top:.3em; margin-left: 0" value="About File Syncing" href="http://zotero.org/support/file_sync"/>
<hbox id="storage-terms" style="margin-top: .4em" align="center">
<label>By using Zotero storage, you agree to become bound by its</label>
<label class="text-link" href="http://www.digitalscholar.org/z_terms" value="terms and conditions"/>
<label>.</label>
</hbox>
</vbox>
</groupbox>
</tabpanel>

View file

@ -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
{