diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 16:55:54 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 16:55:54 +0000 |
commit | 314c4b130d871db6929c012f5650dc29073923d8 (patch) | |
tree | c025472cf16c47a0189baa8192c916faab4344b2 /chrome | |
parent | c5790ae980907167e33290e46b75c264d6e7bd6f (diff) | |
download | chromium_src-314c4b130d871db6929c012f5650dc29073923d8.zip chromium_src-314c4b130d871db6929c012f5650dc29073923d8.tar.gz chromium_src-314c4b130d871db6929c012f5650dc29073923d8.tar.bz2 |
webui options: Fix editing the homepage.
When editing the middle of the home-page entry (e.g. changing from
www.google.com to news.google.com), after each keystroke, the cursor moves to
the end, and you need to go back to the editing location each time.
BUG=72220
TEST=manually
Review URL: http://codereview.chromium.org/6588078
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/resources/options/browser_options.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js index 4711539..a3502b6 100644 --- a/chrome/browser/resources/options/browser_options.js +++ b/chrome/browser/resources/options/browser_options.js @@ -272,7 +272,8 @@ cr.define('options', function() { updateHomepageControlStates_: function() { var homepageField = $('homepageURL'); homepageField.disabled = !this.isHomepageURLFieldEnabled_(); - homepageField.value = this.homepage_pref_.value; + if (homepageField.value != this.homepage_pref_.value) + homepageField.value = this.homepage_pref_.value; homepageField.style.backgroundImage = url('chrome://favicon/' + this.homepage_pref_.value); var disableChoice = !this.isHomepageChoiceEnabled_(); |