summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 16:55:54 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 16:55:54 +0000
commit314c4b130d871db6929c012f5650dc29073923d8 (patch)
treec025472cf16c47a0189baa8192c916faab4344b2 /chrome
parentc5790ae980907167e33290e46b75c264d6e7bd6f (diff)
downloadchromium_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.js3
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_();