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:
Jared Wein 2016-07-07 14:31:05 -04:00
parent bc94fc8653
commit c72dd2013f

View File

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