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

Unified Diff: chrome/browser/resources/chromeos/proxy_settings.js

Issue 7982024: [cros] OOBE/Login: proxy settings are saved when closed immediately after typing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TODO added. Created 9 years, 3 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/proxy_settings.js
diff --git a/chrome/browser/resources/chromeos/proxy_settings.js b/chrome/browser/resources/chromeos/proxy_settings.js
index 3ea31ec5d1382bf0a56d05f7f34f2d8e1ee37483..aca24dd7420eafc29ddd02641e650c21fbf03842 100644
--- a/chrome/browser/resources/chromeos/proxy_settings.js
+++ b/chrome/browser/resources/chromeos/proxy_settings.js
@@ -25,6 +25,14 @@ function load() {
cr.ui.decorate('input[pref][type=url]', options.PrefTextField);
ProxyOptions.getInstance().initializePage();
+ // TODO(ivankr): remove when http://crosbug.com/20660 is resolved.
+ var inputs = document.querySelectorAll('input[pref]');
+ for (var i = 0, el; el = inputs[i]; i++) {
+ el.addEventListener('keyup', function(e) {
+ cr.dispatchSimpleEvent(this, 'change');
+ });
+ }
+
Preferences.getInstance().initialize();
chrome.send('coreOptionsInitialize');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698