diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 03:38:13 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 03:38:13 +0000 |
commit | 9924bf0c7641495b6e27195b088ebbab1c1afc4f (patch) | |
tree | 8c22f76f10eee7fd77f6da877ffdef6f0eb909e0 /chrome/browser/resources/options | |
parent | 94b89715468d7bd03c341e1ecde77417ab95e488 (diff) | |
download | chromium_src-9924bf0c7641495b6e27195b088ebbab1c1afc4f.zip chromium_src-9924bf0c7641495b6e27195b088ebbab1c1afc4f.tar.gz chromium_src-9924bf0c7641495b6e27195b088ebbab1c1afc4f.tar.bz2 |
Fix a bug where clicking on the configure button caused the input method to be disabled.
This bug was caused as the button click event was propagated to the checkbox
click handler.
TEST=manually
BUG=chromium-os:5687
Review URL: http://codereview.chromium.org/3156014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/options')
-rw-r--r-- | chrome/browser/resources/options/chromeos_language_options.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/options/chromeos_language_options.js b/chrome/browser/resources/options/chromeos_language_options.js index 6ee5579..e0cca3e 100644 --- a/chrome/browser/resources/options/chromeos_language_options.js +++ b/chrome/browser/resources/options/chromeos_language_options.js @@ -134,6 +134,10 @@ cr.define('options', function() { var button = document.createElement('button'); button.textContent = localStrings.getString('configure'); button.onclick = function(e) { + // Cancel the event so that the click event is not propagated to + // handleCheckboxClick_(). The button click should not be handled + // as checkbox click. + e.preventDefault(); OptionsPage.showPageByName(pageName); } return button; |