diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 21:47:05 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 21:47:05 +0200 |
commit | 6a57baf7067e3e2f463f3da399875a7e1169b1c4 (patch) | |
tree | 69c0a0734224e0b06b8b71cda06623d37218390c /browser/components/preferences/cookies.js | |
parent | 1d18a1e8ef5aba0458576f6974f844afd6f2c8f6 (diff) | |
parent | 9a97c58feb8f14bb8be720e2cac5db017b4523d3 (diff) | |
download | UXP-6a57baf7067e3e2f463f3da399875a7e1169b1c4.tar UXP-6a57baf7067e3e2f463f3da399875a7e1169b1c4.tar.gz UXP-6a57baf7067e3e2f463f3da399875a7e1169b1c4.tar.lz UXP-6a57baf7067e3e2f463f3da399875a7e1169b1c4.tar.xz UXP-6a57baf7067e3e2f463f3da399875a7e1169b1c4.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into pm_permissions_1
Diffstat (limited to 'browser/components/preferences/cookies.js')
-rw-r--r-- | browser/components/preferences/cookies.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/browser/components/preferences/cookies.js b/browser/components/preferences/cookies.js index 1042642da..921eee4c0 100644 --- a/browser/components/preferences/cookies.js +++ b/browser/components/preferences/cookies.js @@ -30,6 +30,11 @@ var gCookiesWindow = { this._bundle = document.getElementById("bundlePreferences"); this._tree = document.getElementById("cookiesList"); + let removeAllCookies = document.getElementById("removeAllCookies"); + removeAllCookies.setAttribute("accesskey", this._bundle.getString("removeAllCookies.accesskey")); + let removeSelectedCookies = document.getElementById("removeSelectedCookies"); + removeSelectedCookies.setAttribute("accesskey", this._bundle.getString("removeSelectedCookies.accesskey")); + this._populateList(true); document.getElementById("filter").focus(); @@ -582,7 +587,7 @@ var gCookiesWindow = { } } - let buttonLabel = this._bundle.getString("removeSelectedCookies"); + let buttonLabel = this._bundle.getString("removeSelectedCookies.label"); let removeSelectedCookies = document.getElementById("removeSelectedCookies"); removeSelectedCookies.label = PluralForm.get(selectedCookieCount, buttonLabel) .replace("#1", selectedCookieCount); @@ -894,7 +899,17 @@ var gCookiesWindow = { }, _updateRemoveAllButton: function gCookiesWindow__updateRemoveAllButton() { - document.getElementById("removeAllCookies").disabled = this._view._rowCount == 0; + let removeAllCookies = document.getElementById("removeAllCookies"); + removeAllCookies.disabled = this._view._rowCount == 0; + + let labelStringID = "removeAllCookies.label"; + let accessKeyStringID = "removeAllCookies.accesskey"; + if (this._view._filtered) { + labelStringID = "removeAllShownCookies.label"; + accessKeyStringID = "removeAllShownCookies.accesskey"; + } + removeAllCookies.setAttribute("label", this._bundle.getString(labelStringID)); + removeAllCookies.setAttribute("accesskey", this._bundle.getString(accessKeyStringID)); }, filter: function () { |