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

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: Exclude custom dictionary WebUI from mac 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..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;
},
/**
« no previous file with comments | « chrome/browser/resources/options/language_options.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698