Bug 664569 - Next button on Account Details page does not get enabled. Fix enabling. r=Neil a=Callek
authorJens Hatlak <jh@junetz.de>
Sat, 18 Jun 2011 01:18:04 +0200
changeset 10223 c9d3e5785364a75a57e9c8de93fda7728fefc615
parent 10222 bc9932900a348ee6b6f2cf561ec30cd09c665c60
child 10224 a4ca77b7517a6871bf223324badede52943b6dbf
push id6
push userbienvenu@nventure.com
push dateWed, 16 May 2012 22:24:51 +0000
treeherdertry-comm-central@ac395aea3008 [default view] [failures only]
reviewersNeil, Callek
bugs664569
Bug 664569 - Next button on Account Details page does not get enabled. Fix enabling. r=Neil a=Callek
suite/common/sync/syncSetup.js
--- a/suite/common/sync/syncSetup.js
+++ b/suite/common/sync/syncSetup.js
@@ -68,17 +68,17 @@ var gSyncSetup = {
   captchaBrowser: null,
   wizard: null,
   _disabledSites: [],
   _remoteSites: [Weave.Service.serverURL, "https://api-secure.recaptcha.net"],
 
   status: {
     password: false,
     email: false,
-    server: false
+    server: true
   },
 
   get _usingMainServers() {
     if (this._settingUpNew)
       return document.getElementById("server").selectedIndex == 0;
     return document.getElementById("existingServer").selectedIndex == 0;
   },
 
@@ -655,17 +655,17 @@ var gSyncSetup = {
     this._existingServerTimer = window.setTimeout(function () {
       gSyncSetup.checkFields();
     }, 1000);
   },
 
   onServerCommand: function () {
     document.getElementById("TOSRow").hidden = !this._usingMainServers;
     let control = this._updateControl("server");
-    if (control.selectedIndex > 0) {
+    if (control.selectedIndex != 0) {
       // checkServer() will call checkAccount() and checkFields().
       this.checkServer();
       return;
     }
     this.checkAccount();
     this.status.server = true;
     document.getElementById("serverFeedbackRow").hidden = true;
     this.checkFields();