Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3923)

Unified Diff: chrome/browser/resources/options/language_options.js

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..0204e3ad3d31e55af3500dad8ee7039f857a2da3 100644
--- a/chrome/browser/resources/options/language_options.js
+++ b/chrome/browser/resources/options/language_options.js
@@ -90,6 +90,14 @@ cr.define('options', function() {
}
};
+ // Set up the button for editing custom spelling dictionary.
+ var editDictionaryButton = $('edit-dictionary');
+ if (editDictionaryButton) {
+ editDictionaryButton.onclick = function(e) {
+ OptionsPage.navigateToPage('dictionary');
+ };
+ }
+
if (cr.isChromeOS) {
// Listen to user clicks on the add language list.
var addLanguageList = $('add-language-overlay-language-list');
@@ -693,6 +701,7 @@ cr.define('options', function() {
var value = !$('enable-spell-check').checked;
$('language-options-spell-check-language-button').disabled = value;
+ $('edit-dictionary').hidden = value;
},
/**

Powered by Google App Engine
This is Rietveld 408576698