| Index: chrome/browser/resources/options2/language_options.js
|
| diff --git a/chrome/browser/resources/options2/language_options.js b/chrome/browser/resources/options2/language_options.js
|
| index 47674edd0bd1c8135b78c2794e924eeb686cf008..66e7ef81dd2f436c8e68e9d8d6ad4bb7d1bf561c 100644
|
| --- a/chrome/browser/resources/options2/language_options.js
|
| +++ b/chrome/browser/resources/options2/language_options.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -122,7 +122,7 @@ cr.define('options', function() {
|
| // The preference is a string that describes the spell check
|
| // dictionary language, like "en-US".
|
| spellCheckDictionaryPref: 'spellcheck.dictionary',
|
| - spellCheckDictionary_: "",
|
| + spellCheckDictionary_: '',
|
| // The map of language code to input method IDs, like:
|
| // {'ja': ['mozc', 'mozc-jp'], 'zh-CN': ['pinyin'], ...}
|
| languageCodeToInputMethodIdsMap_: {},
|
| @@ -509,7 +509,7 @@ cr.define('options', function() {
|
| * @param {Event} e Click event.
|
| * @private
|
| */
|
| - handleCheckboxClick_ : function(e) {
|
| + handleCheckboxClick_: function(e) {
|
| var checkbox = e.target;
|
| if (this.preloadEngines_.length == 1 && !checkbox.checked) {
|
| // Don't allow disabling the last input method.
|
| @@ -533,7 +533,7 @@ cr.define('options', function() {
|
| * Handles add language list's click event.
|
| * @param {Event} e Click event.
|
| */
|
| - handleAddLanguageListClick_ : function(e) {
|
| + handleAddLanguageListClick_: function(e) {
|
| var languageOptionsList = $('language-options-list');
|
| var languageCode = e.target.languageCode;
|
| // languageCode can be undefined, if click was made on some random
|
| @@ -560,7 +560,7 @@ cr.define('options', function() {
|
| /**
|
| * Handles add language dialog ok button.
|
| */
|
| - handleAddLanguageOkButtonClick_ : function() {
|
| + handleAddLanguageOkButtonClick_: function() {
|
| var languagesSelect = $('add-language-overlay-language-list');
|
| var selectedIndex = languagesSelect.selectedIndex;
|
| if (selectedIndex >= 0) {
|
| @@ -599,7 +599,7 @@ cr.define('options', function() {
|
| * @private
|
| */
|
| handleSpellCheckDictionaryPrefChange_: function(e) {
|
| - var languageCode = e.value.value
|
| + var languageCode = e.value.value;
|
| this.spellCheckDictionary_ = languageCode;
|
| var languageOptionsList = $('language-options-list');
|
| var selectedLanguageCode = languageOptionsList.getSelectedLanguageCode();
|
| @@ -750,7 +750,7 @@ cr.define('options', function() {
|
| * @private
|
| */
|
| notificationTimeout_: null,
|
| - showNotification_ : function(text, actionText, opt_delay) {
|
| + showNotification_: function(text, actionText, opt_delay) {
|
| var notificationElement = $('notification');
|
| var actionLink = notificationElement.querySelector('.link-color');
|
| var delay = opt_delay || 10000;
|
|
|