[tor-commits] [torbirdy/develop] Simplify.

2016-11-24 Thread sukhbir
commit 9b75deeba42e6e7e94cc5acf6e74651d04f63c10
Author: anonym 
Date:   Wed Mar 9 20:16:59 2016 +0100

Simplify.
---
 chrome/content/emailwizard.js | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/chrome/content/emailwizard.js b/chrome/content/emailwizard.js
index 3352fb9..d5adc85 100644
--- a/chrome/content/emailwizard.js
+++ b/chrome/content/emailwizard.js
@@ -6,10 +6,7 @@ if (!org.torbirdy) org.torbirdy = {};
 if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() {
   var pub = {};
 
-  var disableWizard = false;
-  if (Preferences.get("extensions.torbirdy.emailwizard", false)) {
-disableWizard = true;
-  }
+  var disableWizard = !Preferences.get("extensions.torbirdy.emailwizard", 
false);
 
   fixupTorbirdySettingsOnNewAccount = function(account) {
 var idkey = account.defaultIdentity.key;



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits


[tor-commits] [torbirdy/develop] Simplify.

2016-11-24 Thread sukhbir
commit 63aba79747531845fd44fd96879c669b2921fab3
Author: anonym 
Date:   Wed Mar 9 14:00:41 2016 +0100

Simplify.

The removed logic is already present in pub.adjustAutoWizard().
---
 chrome/content/emailwizard.js | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/chrome/content/emailwizard.js b/chrome/content/emailwizard.js
index e17bbd1..a82a188 100644
--- a/chrome/content/emailwizard.js
+++ b/chrome/content/emailwizard.js
@@ -116,12 +116,7 @@ if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = 
new function() {
 var keycode = event.keyCode;
 if (keycode == 13) {
   if (document.getElementById("next_button").disabled === false) {
-if (!disableWizard) {
-  pub.adjustAutoWizard();
-}
-else {
-  gEmailConfigWizard.onNext();
-}
+pub.adjustAutoWizard();
   }
 }
   };



___
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits