Fix proxy dialog checkboxes disabled state on init
This commit is contained in:
parent
eb1aa43da2
commit
8208ece9df
|
@ -31,6 +31,7 @@ Zotero_Preferences.Proxies = {
|
|||
|
||||
init: function () {
|
||||
this.refreshProxyList();
|
||||
this.updateCheckboxState();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -47,6 +48,13 @@ Zotero_Preferences.Proxies = {
|
|||
|
||||
Zotero.Proxies.init();
|
||||
|
||||
this.updateCheckboxState();
|
||||
},
|
||||
|
||||
|
||||
updateCheckboxState: function() {
|
||||
var transparent = document.getElementById('zotero-proxies-transparent').checked;
|
||||
|
||||
document.getElementById('proxyTree-add').disabled =
|
||||
document.getElementById('proxyTree-delete').disabled =
|
||||
document.getElementById('proxyTree').disabled =
|
||||
|
|
Loading…
Reference in New Issue
Block a user