mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1278844 - Disable the Download Folder and Choose Folder elements if the browser.download.useDownloadDir pref is locked. r=MattN
MozReview-Commit-ID: 7biIaukj7Fp --HG-- extra : rebase_source : 2cd19e9c060b5b7f6fc36e3afa9763383491e877
This commit is contained in:
parent
bc94fc8653
commit
c72dd2013f
@ -459,8 +459,8 @@ var gMainPane = {
|
||||
var downloadFolder = document.getElementById("downloadFolder");
|
||||
var chooseFolder = document.getElementById("chooseFolder");
|
||||
var preference = document.getElementById("browser.download.useDownloadDir");
|
||||
downloadFolder.disabled = !preference.value;
|
||||
chooseFolder.disabled = !preference.value;
|
||||
downloadFolder.disabled = !preference.value || preference.locked;
|
||||
chooseFolder.disabled = !preference.value || preference.locked;
|
||||
|
||||
// don't override the preference's value in UI
|
||||
return undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user