diff options
author | adeshkp <adeshkp@users.noreply.github.com> | 2018-04-26 01:49:13 -0400 |
---|---|---|
committer | adeshkp <adeshkp@users.noreply.github.com> | 2018-04-26 01:49:13 -0400 |
commit | 4411befc8ed3819b1fa3bbe5954e19a537155499 (patch) | |
tree | 34c628aac414c9fe5ad20dd5a01e7550111df7a6 /browser/components/preferences/cookies.js | |
parent | eca7e648bfc7d3b9b4bdd88561af6bca4a677cef (diff) | |
download | UXP-4411befc8ed3819b1fa3bbe5954e19a537155499.tar UXP-4411befc8ed3819b1fa3bbe5954e19a537155499.tar.gz UXP-4411befc8ed3819b1fa3bbe5954e19a537155499.tar.lz UXP-4411befc8ed3819b1fa3bbe5954e19a537155499.tar.xz UXP-4411befc8ed3819b1fa3bbe5954e19a537155499.zip |
[Basilisk] Change button labels in cookies dialog
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 () { |