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

Unified Diff: chrome/browser/resources/sync_promo.js

Issue 8502042: Sync Promo: Fix up focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/sync_promo.js
diff --git a/chrome/browser/resources/sync_promo.js b/chrome/browser/resources/sync_promo.js
index e2366dbfd80612f9a7578b75d91cf1d933f54873..37d7a1952871537d511c784e552d561de31963fb 100644
--- a/chrome/browser/resources/sync_promo.js
+++ b/chrome/browser/resources/sync_promo.js
@@ -144,6 +144,14 @@ cr.define('sync_promo', function() {
this.toggleHidden_.bind(this));
this.learnMore_.addEventListener('webkitTransitionEnd',
this.toggleHidden_.bind(this));
+
+ // Start the page focused on the email/username field.
+ $('gaia-email').focus();
sail 2011/11/09 01:54:39 I don't think this is the correct fix. sync_setup
+
+ // Fix tab order for only the sync promo by breaking the byte order and
+ // putting the learn more button on top via [tabindex].
+ $('promo-learn-more-show').tabIndex = 1;
+ $('promo-learn-more-hide').tabIndex = 1;
},
/**
« 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