Add Zotero storage TOS link
This commit is contained in:
parent
c0b97e339a
commit
6539cace59
3 changed files with 41 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue