| Index: chrome/browser/resources/options/language_options.js
|
| diff --git a/chrome/browser/resources/options/language_options.js b/chrome/browser/resources/options/language_options.js
|
| index 8c388cf1b3543bc50daeaa0da7e7cc27a1230fb7..f881b9c2b809663a97d0b42b74caa39c3c0c8a28 100644
|
| --- a/chrome/browser/resources/options/language_options.js
|
| +++ b/chrome/browser/resources/options/language_options.js
|
| @@ -90,6 +90,13 @@ cr.define('options', function() {
|
| }
|
| };
|
|
|
| + if (!cr.isMac) {
|
| + // Set up the button for editing custom spelling dictionary.
|
| + $('edit-dictionary-button') .onclick = function(e) {
|
| + OptionsPage.navigateToPage('editDictionary');
|
| + };
|
| + }
|
| +
|
| if (cr.isChromeOS) {
|
| // Listen to user clicks on the add language list.
|
| var addLanguageList = $('add-language-overlay-language-list');
|
| @@ -691,8 +698,9 @@ cr.define('options', function() {
|
| */
|
| updateEnableSpellCheck_: function() {
|
| var value = !$('enable-spell-check').checked;
|
| -
|
| $('language-options-spell-check-language-button').disabled = value;
|
| + if (!cr.IsMac)
|
| + $('edit-dictionary-button').hidden = value;
|
| },
|
|
|
| /**
|
|
|