Properly disable download-mode menulist for groups in Sync pref pane

This commit is contained in:
Dan Stillman 2016-04-15 01:33:28 -04:00
parent 045554dd8e
commit 62f4586eb0
2 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ Zotero_Preferences.Sync = {
sep.hidden = true; sep.hidden = true;
} }
var menulists = document.querySelectorAll('#storage-settings menulist.storage-personal'); var menulists = document.querySelectorAll('#storage-settings menulist.storage-mode');
for (let menulist of menulists) { for (let menulist of menulists) {
menulist.disabled = !enabled; menulist.disabled = !enabled;
} }

View File

@ -228,7 +228,7 @@
<hbox class="storage-settings-download-options" align="center"> <hbox class="storage-settings-download-options" align="center">
<label value="&zotero.preferences.sync.fileSyncing.download;"/> <label value="&zotero.preferences.sync.fileSyncing.download;"/>
<menulist class="storage-personal" preference="pref-storage-downloadMode-personal" style="margin-left: 0"> <menulist class="storage-mode" preference="pref-storage-downloadMode-personal" style="margin-left: 0">
<menupopup> <menupopup>
<menuitem label="&zotero.preferences.sync.fileSyncing.download.onDemand;" value="on-demand"/> <menuitem label="&zotero.preferences.sync.fileSyncing.download.onDemand;" value="on-demand"/>
<menuitem label="&zotero.preferences.sync.fileSyncing.download.atSyncTime;" value="on-sync"/> <menuitem label="&zotero.preferences.sync.fileSyncing.download.atSyncTime;" value="on-sync"/>
@ -245,7 +245,7 @@
<hbox class="storage-settings-download-options" align="center"> <hbox class="storage-settings-download-options" align="center">
<label value="&zotero.preferences.sync.fileSyncing.download;"/> <label value="&zotero.preferences.sync.fileSyncing.download;"/>
<menulist class="storage-groups" preference="pref-storage-downloadMode-groups" style="margin-left: 0"> <menulist class="storage-mode" preference="pref-storage-downloadMode-groups" style="margin-left: 0">
<menupopup> <menupopup>
<menuitem label="&zotero.preferences.sync.fileSyncing.download.onDemand;" value="on-demand"/> <menuitem label="&zotero.preferences.sync.fileSyncing.download.onDemand;" value="on-demand"/>
<menuitem label="&zotero.preferences.sync.fileSyncing.download.atSyncTime;" value="on-sync"/> <menuitem label="&zotero.preferences.sync.fileSyncing.download.atSyncTime;" value="on-sync"/>